Function at 0x404c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d546
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x468cb0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, dword [0x46d768]
mov dword [esp + 0x2c], ebx
call fcn.0040e738
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404c88
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xe8], 0
mov ecx, dword [ebx + 8]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x404cfc
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x404ceb
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x404ceb
push edx
call fcn.004015a0
add esp, 4
mov dword [esp + 0x20], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x404ce2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x20]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
jmp 0x404cfc
push dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401b90
mov esi, dword [esp + 0x1c]
push 0x45b67c
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00430912
add esp, 8
lea ecx, [esp + 0x38]
push dword [esp + 0x34]
call fcn.00406b90
mov byte [esp + 0xe8], 1
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x40], 6
je 0x404d39
xor bl, bl
jmp 0x4050ac
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x14], 0
add eax, edx
je 0x404db5
xor esi, esi
lea esp, [esp]
mov edi, dword [ebx + 0x24]
mov dl, 0x3b
lea ecx, [esp + 0x34]
add edi, esi
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov edi, dword [esp + 0x14]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esi, 0x18
mov dword [esp + 0x14], edi
cmp edi, eax
jb 0x404d60
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x28]
sub ecx, dword [ebx + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404de1
push ecx
lea ecx, [esp + 0x38]
call fcn.004098a0
lea ecx, [esp + 0x34]
call fcn.00409f40
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
mov dword [esp + 0x20], 0
add eax, edx
je 0x404fb5
xor esi, esi
xor eax, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0x18]
mov dl, 0x5b
lea ecx, [esp + 0x34]
add edi, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov dl, 0x5d
mov ecx, eax
call fcn.00407a10
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov edi, dword [ebx + 0xc]
xor ecx, ecx
add edi, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x1c]
sub ecx, dword [edi + 0x18]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404ecb
xor eax, eax
mov dword [esp + 0x18], eax
nop
mov edi, dword [edi + 0x18]
mov dl, 0x3b
lea ecx, [esp + 0x34]
add edi, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov edi, dword [ebx + 0xc]
inc dword [esp + 0x24]
mov ecx, dword [edi + esi + 0x1c]
sub ecx, dword [edi + esi + 0x18]
add dword [esp + 0x18], 0x18
add edi, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
jb 0x404e70
mov ecx, dword [ebx + 0xc]
add ecx, esi
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
mov dword [esp + 0x18], 0
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404f66
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx]
add edx, ebx
cmp dword [eax + ebx + 0x10], 0
lea ecx, [esp + 0x34]
je 0x404f1d
lea edi, [ebx + eax]
call fcn.00407d40
mov dl, 0x3d
mov ecx, eax
call fcn.00407a10
mov edx, edi
mov ecx, eax
call fcn.00407d40
mov edi, eax
push ecx
mov ecx, edi
call fcn.004098a0
mov ecx, edi
call fcn.00409f40
mov ecx, dword [esp + 0x28]
add ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, 0x2aaaaaab
mov edx, dword [ecx + 4]
sub edx, dword [ecx]
inc edi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
invalid