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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], edi
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
mov ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
call fcn.101552d0
mov edx, dword [eax + 0x114]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], edx
sub eax, 0
je 0x1004cdcd
sub eax, 1
je 0x1004cdc5
xor ebp, ebp
jmp 0x1004d215
mov ebp, dword [edx + 0xb4]
jmp 0x1004cdd3
mov ebp, dword [edx + 0xb8]
xor ebx, ebx
mov dword [esp + 0x18], ebx
test ebp, ebp
je 0x1004d211
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x7c]
sub eax, 0
je 0x1004ce54
sub eax, 1
je 0x1004ce3c
mov eax, dword [esp + 0x7c]
mov edi, 0xde1
sub eax, 0
je 0x1004ce5e
sub eax, 1
je 0x1004ce46
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push 0
push ebx
push dword [esp + 0x84]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x44]
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x1004d1e0
lea ecx, [esp + 0x44]
call fcn.100016b0
jmp 0x1004d12e
mov eax, dword [edx + 0xa8]
mov edi, dword [eax + ecx + 8]
mov esi, dword [edx + 0xa8]
mov ecx, dword [edx + 0xac]
jmp 0x1004ce6a
mov eax, dword [edx + 0x9c]
mov edi, dword [eax + ecx + 8]
mov esi, dword [edx + 0x9c]
mov ecx, dword [edx + 0xa0]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x1004ce08
mov eax, dword [esp + 0x1c]
cmp byte [eax + esi], 0
je 0x1004ce08
mov esi, dword [eax + esi + 4]
test esi, esi
js 0x1004ce08
mov eax, dword [esp + 0x20]
cmp esi, dword [eax + 0x1f8]
jge 0x1004ce08
mov ecx, dword [esp + 0x24]
push edi
push esi
call fcn.101554b0
mov ecx, dword [esp + 0x24]
mov ebx, eax
push esi
call fcn.10155470
test eax, eax
je 0x1004ced4
mov ecx, eax
call fcn.10155490
mov esi, eax
mov dword [esp + 0x28], esi
jmp 0x1004cee1
mov ecx, ebx
call fcn.101554a0
mov esi, eax
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.10154280
push dword [esp + 0x78]
mov ecx, eax
mov dword [esp + 0x18], ebp
push esi
call fcn.101568a0
test al, al
je 0x1004d01a
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], ebp
test edx, edx
jle 0x1004cf40
mov dword [esp + 0x14], ebp
nop word [eax + eax]
mov ecx, edx
shr ecx, 1
cmp dword [esi + ecx*4], ebx
lea eax, [esi + ecx*4]
jae 0x1004cf38
lea esi, [eax + 4]
or eax, 0xffffffff
sub eax, ecx
add edx, eax
jmp 0x1004cf3a
mov edx, ecx
test edx, edx
jg 0x1004cf20
jmp 0x1004cf44
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
lea eax, [edx + ecx*4]
cmp esi, eax
je 0x1004cf61
cmp ebx, dword [esi]
jae 0x1004d01a
push dword [esp + 0x28]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ebx
push dword [esp + 0x20]
push dword [esp + 0x88]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x40]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x1004d173
lea ecx, [esp + 0x38]
call fcn.100016b0
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esp + 0x84]
push ecx
mov ecx, esi
call dword [eax + 0x44]
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x1004d155
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1004d12a
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1004cffa
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1004cff0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d14f
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x1004d12a
mov ebp, dword [esp + 0x10]
mov ecx, ebp
push edi
push dword [esp + 0x78]
call fcn.100563b0
mov ecx, dword [ebp]
mov edi, eax
mov esi, dword [ecx + 0x40]
mov ecx, edi
call fcn.101554a0
mov ebx, dword [esp + 0x18]
mov ecx, ebp
push eax
push edi
push ebx
push dword [esp + 0x88]
lea eax, [esp + 0x70]
push eax
call esi
mov ecx, dword [esp + 0x60]
test ecx, ecx
jne 0x1004d1c2
mov esi, dword [esp + 0x68]
test esi, esi
je 0x1004d0b2
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1004d097
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1004d08d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d14f
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp]
lea ecx, [esp + 0x54]
push edi
push ebx
push dword [esp + 0x84]
push ecx
mov ecx, ebp
call dword [eax + 0x44]
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x1004d1a4
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x1004d126
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1004d10b
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1004d101
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004d14f
mov eax, edx
push ecx
push eax
call fcn.10174919
add esp, 8
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc ebx
add ecx, 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
cmp ebx, ebp
jae 0x1004d211
mov edx, dword [esp + 0x2c]
jmp 0x1004cde7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
pop ebx
add esp, 0x5c
ret 0x18
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov dword [esi + 8], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
call fcn.100016b0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
pop ebx
add esp, 0x5c
ret 0x18
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
pop ebx
add esp, 0x5c
ret 0x18
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi], eax
mov dword [esi + 8], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
call fcn.100016b0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
test edx, edx
jne 0x1004d225
mov ecx, dword [ebx + 0x168]
jmp 0x1004d22b
mov ecx, dword [ebx + 0x144]
mov eax, dword [edi]
push ecx
push ebp
push edx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0xc8]
lea ecx, [esp + 0x68]
call fcn.100016b0
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
pop ebx
add esp, 0x5c
ret 0x18