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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492869
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x4b30f0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
lea eax, [esp + 0x54]
push eax
call fcn.0044c070
mov dword [esp + 0x90], 0
push 0x172
lea ecx, [esp + 0x58]
call fcn.0040a020
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 0x49a60c
lea ebx, [esp + 0x58]
call fcn.004361d0
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov eax, edx
sub eax, ecx
xor ebx, ebx
xor esi, esi
sar eax, 2
add esp, 4
mov dword [esp + 0x18], esi
cmp eax, ebx
jbe 0x4082b1
jmp 0x407e64
mov esi, dword [esp + 0x18]
cmp esi, eax
jb 0x407e71
call fcn.0046fc99
mov ecx, dword [esp + 0x60]
mov edi, dword [ecx + esi*4]
push 4
call fcn.0046fefa
add esp, 4
mov byte [esp + 0x90], 1
cmp eax, ebx
je 0x407e92
lea edx, [esp + 0x3c]
mov dword [eax], edx
jmp 0x407e94
xor eax, eax
mov byte [esp + 0x90], bl
mov dword [esp + 0x3c], eax
mov byte [esp + 0x90], 3
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x90], 4
push 0x14
lea ecx, [esp + 0x40]
call fcn.0040a020
push 0x49a690
lea ebx, [esp + 0x40]
mov ecx, edi
call fcn.004361d0
mov eax, dword [0x4b6a0c]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x4b6a0c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x90], 6
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov eax, edx
sub eax, ecx
xor ebx, ebx
sar eax, 2
xor esi, esi
cmp eax, ebx
jbe 0x4081f6
cmp esi, eax
jb 0x407f1f
call fcn.0046fc99
mov ecx, dword [esp + 0x48]
mov edi, dword [ecx + esi*4]
push 4
call fcn.0046fefa
add esp, 4
mov byte [esp + 0x90], 8
cmp eax, ebx
je 0x407f40
lea ecx, [esp + 0x24]
mov dword [eax], ecx
jmp 0x407f42
xor eax, eax
mov byte [esp + 0x90], 6
mov dword [esp + 0x24], eax
mov byte [esp + 0x90], 0xa
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x90], 0xb
push 2
lea ecx, [esp + 0x28]
call fcn.0040a020
push 0x49a610
lea ebx, [esp + 0x28]
mov ecx, edi
call fcn.004361d0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
and edx, 0xfffffffc
add esp, 4
cmp edx, 8
jne 0x408166
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
call fcn.00403a70
mov byte [esp + 0x90], 0xc
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
sar edx, 2
cmp edx, 1
ja 0x407fc7
call fcn.0046fc99
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x4b92c0
call fcn.00409a60
test edi, edi
jne 0x407fe5
xor ecx, ecx
jmp 0x407fff
mov ecx, edi
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407ff0
sub ecx, ebx
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004014b0
mov byte [esp + 0x90], 0xb
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40802f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4080f9
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x30]
sar ecx, 2
test ecx, ecx
ja 0x40804b
call fcn.0046fc99
mov edx, dword [esp + 0x30]
mov edx, dword [edx]
test edx, edx
jne 0x408059
xor eax, eax
jmp 0x40806f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408060
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.004014b0
push 4
call fcn.0046fefa
add esp, 4
mov byte [esp + 0x90], 0xe
xor ecx, ecx
cmp eax, ecx
je 0x40809b
lea edx, [esp + 0x6c]
mov dword [eax], edx
jmp 0x40809d
xor eax, eax
mov byte [esp + 0x90], 0xb
mov dword [esp + 0x6c], eax
mov byte [esp + 0x90], 0x10
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov byte [esp + 0x90], 0x11
lea eax, [esp + 0x6c]
push eax
push ecx
push 0x4b92e0
lea ebx, [esp + 0x20]
call fcn.00409c90
add esp, 4
push eax
call fcn.004098f0
mov byte [esp + 0x90], 0xb
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040ec60
jmp 0x408166
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x30]
sar edx, 2
test edx, edx
ja 0x40810d
call fcn.0046fc99
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
push eax
call fcn.00403a70
mov byte [esp + 0x90], 0x12
push 0x4b92e0
lea ebx, [esp + 0x18]
call fcn.00409c90
lea ebx, [esp + 0x20]
mov edi, eax
call fcn.0040ea10
mov byte [esp + 0x90], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x30]
xor ebx, ebx
sar eax, 2
xor edi, edi
cmp eax, ebx
jbe 0x4081a2
cmp edi, eax
jb 0x408182
call fcn.0046fc99
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + edi*4]
push eax
call fcn.00470318
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
inc edi
sar eax, 2
add esp, 4
cmp edi, eax
jb 0x408182
mov byte [esp + 0x90], 0x14
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4081bb
push eax
call fcn.0046f1b2
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x90], 6
mov edx, dword [esp + 0x24]
push edx
call fcn.0046f1b2
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
add esp, 4
xor ebx, ebx
cmp esi, eax
jb 0x407f1f
sub edx, ecx
mov eax, edx
sar eax, 2
xor edi, edi
cmp eax, ebx
jbe 0x40822e
cmp edi, eax
jb 0x408210
call fcn.0046fc99
mov ecx, dword [esp + 0x48]
mov ecx, dword [ecx + edi*4]
push ecx
call fcn.00470318
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
inc edi
sar eax, 2
add esp, 4
cmp edi, eax
jb 0x408210
mov byte [esp + 0x90], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408256
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], 0x17
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x40826f
push eax
call fcn.0046f1b2
add esp, 4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x90], bl
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0046f1b2
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
mov eax, edx
sub eax, ecx
inc esi
sar eax, 2
add esp, 4
xor ebx, ebx
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x407e60
sub edx, ecx
mov eax, edx
sar eax, 2
xor esi, esi
cmp eax, ebx
jbe 0x4082e9
cmp esi, eax
jb 0x4082cb
call fcn.0046fc99
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + esi*4]
push ecx
call fcn.00470318
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub eax, ecx
inc esi
sar eax, 2
add esp, 4
cmp esi, eax
jb 0x4082cb
mov dword [esp + 0x90], 0xffffffff
lea edx, [esp + 0x54]
push edx
call fcn.004364d0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4