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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002d34c
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x10037c38]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10037c38]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
lea eax, [esp + 0xb4]
mov edi, edx
push eax
mov esi, ecx
mov dword [esp + 0x78], edi
call fcn.1000a0a0
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x1c4], 0
call fcn.10007350
push edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c4], 1
call fcn.1000a4e0
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
jne 0x10004d3a
xor esi, esi
cmp ebx, esi
je 0x10004d02
mov ecx, dword [esp + 0x28]
push ecx
mov eax, ebx
call fcn.10009e20
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.1000e076
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.1000e076
add esp, 4
lea ecx, [esp + 0xb4]
push ecx
mov dword [esp + 0x1c4], 0xffffffff
call fcn.1000a1e0
xor eax, eax
jmp 0x100053aa
mov edx, dword [esi + 0x38]
mov eax, dword [edx + 4]
lea edi, [esi + 0x20]
push eax
mov ecx, edi
mov dword [esp + 0x30], edi
call fcn.10007f70
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
xor ebx, ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
add esi, 0x40
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
push edx
mov ecx, esi
mov dword [esp + 0x7c], esi
call fcn.100082b0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
lea eax, [esp + 0x48]
push eax
call fcn.10007350
lea ecx, [esp + 0x84]
push ecx
mov byte [esp + 0x1c4], 2
call fcn.10007b30
mov byte [esp + 0x1c0], 3
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jbe 0x10004dca
call fcn.10018c77
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x3c], eax
jbe 0x10004de5
call fcn.10018c77
test ebx, ebx
je 0x10004def
cmp ebx, dword [esp + 0x30]
je 0x10004df4
call fcn.10018c77
cmp esi, dword [esp + 0x14]
je 0x100052eb
test ebx, ebx
jne 0x10004ed6
call fcn.10018c77
cmp esi, dword [ebx + 0x10]
jb 0x10004e15
call fcn.10018c77
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x10004e20
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.1000a860
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
mov ecx, esi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add esp, 8
add eax, edx
je 0x100052aa
mov dword [esp + 0x14], ebx
cmp ebx, esi
jbe 0x10004e6c
call fcn.10018c77
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add ecx, 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
nop
cmp ebx, esi
jbe 0x10004e8d
call fcn.10018c77
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10004e97
cmp eax, dword [esp + 0x48]
je 0x10004ea0
call fcn.10018c77
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
add ebx, 0xffffffe0
cmp ebx, esi
je 0x100051bc
test eax, eax
jne 0x10004edd
call fcn.10018c77
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x10004ec4
call fcn.10018c77
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], 8
jb 0x10004ee1
mov ecx, dword [eax - 0x1c]
add eax, 0xffffffe4
jmp 0x10004ee4
mov ebx, dword [ebx]
jmp 0x10004e0b
mov eax, dword [eax]
jmp 0x10004eba
lea ecx, [eax - 0x1c]
lea ebx, [esp + 0x68]
call fcn.10004700
mov edx, dword [edi + 0x18]
mov esi, eax
mov eax, dword [edi]
mov dword [esp + 0x60], eax
mov ecx, esi
mov eax, edi
mov dword [esp + 0x64], edx
call fcn.10008e60
mov ebx, eax
mov dword [esp + 0xa8], ebx
test edi, edi
jne 0x10004f17
call fcn.10018c77
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edi, dword [ecx + 0x18]
mov dword [esp + 0xa4], eax
test eax, eax
je 0x10004f2f
cmp eax, eax
je 0x10004f34
call fcn.10018c77
cmp ebx, edi
je 0x10004f8d
mov ecx, dword [ebx + 0xc]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x100052e1
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004f76
test dx, dx
je 0x10004f72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004f76
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004f50
xor eax, eax
jmp 0x10004f7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setl al
test al, al
jne 0x10004f8d
lea eax, [esp + 0xa4]
jmp 0x10004fa5
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], edx
lea eax, [esp + 0x7c]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
test ecx, ecx
je 0x10004fb4
cmp ecx, dword [esp + 0x60]
je 0x10004fb9
call fcn.10018c77
cmp esi, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004fe0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x100050b2
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005013
call fcn.10018c77
xor eax, eax
mov edi, dword [esp + 0x14]
lea ecx, [edi - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x10005008
call fcn.10018c77
cmp dword [edi - 8], 8
jb 0x10005017
mov ecx, dword [edi - 0x1c]
jmp 0x1000501a
mov eax, dword [eax]
jmp 0x10004ff7
lea ecx, [edi - 0x1c]
lea ebx, [esp + 0x6c]
call fcn.10004700
mov esi, eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x1c0], 4
test eax, eax
jne 0x10005053
call fcn.10018c77
xor eax, eax
lea ecx, [edi - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x10005049
call fcn.10018c77
cmp dword [edi + 0x14], 8
jb 0x10005057
mov ebx, dword [edi]
jmp 0x10005059
mov eax, dword [eax]
jmp 0x1000503c
mov ebx, edi
mov ecx, dword [esp + 0x2c]
push esi
call fcn.10007450
test ebx, ebx
jne 0x1000506b
xor edx, edx
jmp 0x1000507f
mov edx, ebx
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x10005070
sub edx, ecx
sar edx, 1
push edx
push ebx
mov ecx, eax
call fcn.100034b0
mov byte [esp + 0x1c0], 3
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100050b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x100050b6
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100050dd
call fcn.10018c77
xor eax, eax
lea ecx, [edi - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x100050d2
call fcn.10018c77
cmp dword [edi - 8], 8
jb 0x100050e1
mov ecx, dword [edi - 0x1c]
jmp 0x100050e4
mov eax, dword [eax]
jmp 0x100050c5
lea ecx, [edi - 0x1c]
lea ebx, [esp + 0x70]
call fcn.10004700
mov esi, eax
cmp dword [esp + 0x20], 0
mov byte [esp + 0x1c0], 5
jne 0x1000511c
call fcn.10018c77
xor eax, eax
lea ecx, [edi - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x10005112
call fcn.10018c77
cmp dword [edi + 0x14], 8
jb 0x10005124
mov ebx, dword [edi]
jmp 0x10005126
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
jmp 0x10005105
mov ebx, edi
push esi
lea ecx, [esp + 0x88]
call fcn.10007450
test ebx, ebx
jne 0x1000513b
xor edx, edx
jmp 0x1000514f
mov edx, ebx
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x10005140
sub edx, ecx
sar edx, 1
push edx
push ebx
mov ecx, eax
call fcn.100034b0
mov byte [esp + 0x1c0], 3
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100051b8
call fcn.10018c77
xor eax, eax
lea ecx, [edi - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x1000519c
call fcn.10018c77
mov esi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
add edi, 0x38
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x2c]
jmp 0x10004e80
mov eax, dword [eax]
jmp 0x1000518f
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x100051eb
call fcn.10018c77
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x100051d9
call fcn.10018c77
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 8
jb 0x100051ef
invalid