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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [0x42e330]
mov edx, 0x80
push esi
mov esi, dword [0x42e33c]
mov dword [esp + 0x28], 0x42e330
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
push edi
test esi, esi
jne 0x407f99
mov edi, esi
nop
cmp edi, esi
jne 0x404538
xor al, al
test al, al
jne 0x407fc4
mov eax, dword [esp + 0x40]
mov dword [0x42e33c], 0
test eax, eax
jne 0x40820e
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.00405160
mov esp, ebp
pop ebp
ret
mov al, 1
jmp 0x404506
lea ecx, [esp + 0x40]
shl esi, 7
push ecx
push 0x40
push esi
push eax
call fcn.00424d43
cmp dword [esp + 0x40], 0
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
je 0x4044fc
xor edi, edi
jmp 0x404500
mov eax, dword [esp + 0x34]
mov ecx, edx
imul ecx, edi
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x38]
add eax, ecx
lea ecx, [esp + 0x14]
push eax
push 0
call fcn.00423c27
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call fcn.00424dad
cmp byte [esp + 0x4c], 0
je 0x4081fb
cmp dword [esp + 0x48], 0x42e330
lea ecx, [esp + 0xc]
je 0x408014
mov byte [esp + 0x4c], 0
jmp 0x4081ff
lea eax, [esp + 0x50]
push eax
call fcn.00424dad
cmp byte [esp + 0x54], 0
je 0x4081dc
push 5
push dword [esp + 0x54]
lea ecx, [esp + 0x60]
push 0x42e330
call fcn.00423d50
cmp dword [esp + 0x94], 0
je 0x408199
cmp byte [esp + 0x88], 0
je 0x408199
lea eax, [esp + 0xa]
push eax
lea ecx, [esp + 0x5c]
call fcn.00424d6d
cmp byte [esp + 0xb], 0
jne 0x4080ab
lea ecx, [esp + 0x8c]
call fcn.004240ed
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x408096
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
cmp eax, ecx
jne 0x4081cd
jmp 0x4081d7
cmp byte [esp + 0xa], 0xe9
je 0x4080f4
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb], 0
call fcn.004240ed
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x4080df
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
cmp eax, ecx
jne 0x4081cd
jmp 0x4081d7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x58]
add eax, dword [esp + 0x1c]
push eax
call fcn.00424fda
cmp dword [esp + 0x94], 0
je 0x40815e
cmp byte [esp + 0x88], 0
je 0x40815e
lea ecx, [esp + 0x58]
call fcn.00424132
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb], 0
call fcn.004240ed
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x408150
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
cmp eax, ecx
jne 0x4081cd
jmp 0x4081d7
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb], 0
call fcn.004240ed
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x40818b
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
cmp eax, ecx
jne 0x4081cd
jmp 0x4081d7
lea ecx, [esp + 0x8c]
call fcn.004240ed
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x4081c1
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x4081d7
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov byte [esp + 0x54], 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
lea ecx, [esp + 0x10]
call fcn.0042517d
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0xc]
call fcn.00423ecb
mov edx, dword [esp + 0x38]
inc edi
jmp 0x404500
lea ecx, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x44]
imul eax, edx
push eax
push dword [esp + 0x3c]
call fcn.00424d43
mov eax, dword [esp + 0x44]
test eax, eax
je 0x404524
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404524