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

Disassembly:
sub esp, 0x6c
push ebx
push edi
xor ebx, ebx
xor edi, edi
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], edi
call fcn.00049c50
cmp dword [esi + 0x1045c], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
je 0x3945bd
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret 0xc
mov eax, dword [esi + 0x10214]
and dword [esp + 0x80], eax
push 4
push ebx
lea ecx, [esp + 0x24]
push ecx
call fcn.000489a0
mov eax, dword [esi + 0x10484]
push 4
lea edx, [esp + 0x20]
push edx
push 0x1000085
push 0xbfef0100
push eax
push esi
mov dword [esp + 0x34], 1
call fcn.00048620
test byte [esi + 0x103b0], 1
je 0x39463d
push 8
push ebx
lea ecx, [esp + 0x34]
push ecx
call fcn.000489a0
mov eax, dword [esi + 0x10484]
push 8
lea edx, [esp + 0x30]
push edx
push 0x2000008
push 0xbfef0033
push eax
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 7
call fcn.00048620
cmp dword [esp + 0x78], ebx
jne 0x394658
mov ecx, dword [esp + 0x7c]
mov edi, 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 8], edi
mov ecx, dword [esi + 0x1020c]
xor eax, eax
cmp ecx, ebx
push ebp
jbe 0x3946ea
mov edx, dword [esi + 0x10480]
mov edi, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
and edx, 0x20000
lea ecx, [edi + 0x130]
sub ebp, edi
cmp edx, ebx
jne 0x3946ac
cmp dword [esp + 0x80], ebx
mov edi, dword [ecx + ebp]
mov dword [esp + eax*8 + 0x48], edi
je 0x3946a4
mov edi, dword [ecx]
mov dword [esp + eax*8 + 0x4c], edi
jmp 0x3946d8
xor edi, edi
mov dword [esp + eax*8 + 0x4c], edi
jmp 0x3946d8
cmp dword [esp + 0x80], ebx
mov edi, dword [esp + 0x7c]
mov edi, dword [edi + 0x130]
mov dword [esp + eax*4 + 0x48], edi
je 0x3946d2
mov edi, dword [esp + 0x80]
mov edi, dword [edi + 0x134]
jmp 0x3946d4
xor edi, edi
mov dword [esp + eax*4 + 0x50], edi
add eax, 1
add ecx, 4
cmp eax, dword [esi + 0x1020c]
jb 0x394688
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx + 0xa8]
mov eax, ecx
sub eax, 2
je 0x394708
sub eax, 2
mov dword [esp + 0x2c], 0xcf
jmp 0x394710
mov dword [esp + 0x2c], 0xe8
mov eax, dword [edx + 0x88]
imul eax, ecx
mov ecx, dword [edx + 0x94]
sub eax, 1
add ecx, 6
shr eax, cl
mov ecx, dword [esi + 0x12e7c]
add eax, 1
cmp ecx, 0x507c
mov dword [esp + 0x30], eax
jne 0x39476f
mov eax, dword [edx + 0x12c]
cmp eax, 0x100
je 0x394761
mov edi, dword [esp + 0xc]
xor edx, edx
cmp eax, 0x400
sete dl
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x7c]
jmp 0x394765
mov dword [esp + 0x10], ebx
mov eax, dword [edx + 0x124]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x12f54]
sub eax, 1
je 0x394787
sub eax, 3
mov dword [esp + 0x20], 2
je 0x39478b
mov dword [esp + 0x20], ebx
cmp edx, ebx
mov dword [esp + 0x24], 0x10
je 0x3947fd
mov ebp, dword [esp + 0x80]
cmp ebp, ebx
je 0x3947fd
mov eax, dword [esi + 0x10480]
test eax, 0x20000
je 0x3947b3
test al, 0x20
je 0x3947fd
cmp ecx, 0x507c
mov dword [esp + 0x24], 0x11
jne 0x3947fd
mov ecx, dword [edx + 0x128]
mov edx, dword [ebp + 0x128]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x1020c]
cmp edx, ebx
mov dword [esp + 0x40], ecx
jbe 0x3947fd
mov eax, dword [esi + 0xc]
shl eax, 0x10
xor eax, 0xbeef0201
lea ecx, [esp + 0x4c]
mov dword [ecx - 4], eax
mov dword [ecx], eax
add ecx, 8
sub edx, 1
jne 0x3947f0
push 0x10000
push ebx
push esi
call fcn.00391310
xor ebp, ebp
cmp dword [esi + 0x1020c], ebx
jbe 0x394b6a
shl edi, 4
lea eax, [esi + 0x12e98]
lea ecx, [esi + 0x12e90]
lea edx, [esp + 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov edi, 0x40094
nop
mov ecx, ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x84]
test ecx, eax
je 0x394b47
push 0x20
push ebx
lea edx, [esp + 0x60]
push edx
call fcn.000489a0
mov eax, ebp
shl eax, 0x10
mov ecx, eax
xor ecx, 0xbfef0c10
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x12e7c]
push ecx
xor eax, 0xbfef0034
push eax
push 0xbfef0033
push esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.000485f0
test eax, eax
jne 0x394c33
test byte [esi + 0x10482], 1
je 0x3948b3
push ebx
jmp 0x3948b5
push 1
push ebp
push esi
call fcn.00394210
push 0x50
push ebp
mov edx, esi
call fcn.003914b0
test byte [esi + 0x103b0], 1
je 0x3948d8
mov dword [eax], 0x60000001
add eax, 4
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, 0x400a0
mov edx, 0x400a4
mov dword [eax], 0x40084
mov dword [eax + 8], 0x40088
mov dword [eax + 0xc], 0xd0
mov dword [eax + 0x10], 0x4008c
mov dword [eax + 0x14], 0x43214321
mov dword [eax + 0x18], 0x40090
mov dword [eax + 0x1c], 0x12341234
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], 0xbfef0c11
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ebx
add eax, 0x38
test byte [esi + 0x103b0], 1
je 0x394989
mov dword [eax], 0x60000ffe
add eax, 4
mov dword [eax], 0x40084
mov dword [eax + 4], ebx
mov dword [eax + 8], 0x40088
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 0x4008c
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], 0x40090
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], ebx
add eax, 0x38
mov dword [eax], 0x60000001
add eax, 4
cmp dword [esi + 0x12e7c], 0x827c
mov dword [eax], 0x400c0
jb 0x3949b5
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 4]
mov ecx, dword [ecx]
mov dword [eax + 4], edx
add eax, 8
mov dword [eax], 0x400c4
mov dword [eax + 4], ecx
jmp 0x3949bc
mov edx, dword [esp + ebp*8 + 0x48]
mov dword [eax + 4], edx
add eax, 8
test byte [esi + 0x10482], 2
mov dword [eax + 8], 0x40804
mov dword [eax], 0x40800
jne 0x3949e8
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
shr ecx, 8
shr edx, 8
mov dword [eax + 0xc], edx
jmp 0x3949f2
mov ecx, dword [esp + ebp*4 + 0x40]
shr ecx, 8
mov dword [eax + 0xc], ecx
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [eax], 0x40808
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
and ecx, 0x7fff
shl ecx, 0x10
and edx, 0x7fff
or ecx, edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
and ecx, 0x3ff
mov dword [eax + 8], 0x4080c
mov edx, dword [edx + 0x98]
shl ecx, 8
and edx, 0xf
or ecx, edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
and ecx, 1
shl ecx, 8
and edx, 0x7f
or ecx, edx
mov edx, dword [esp + 0x2c]
shl ecx, 8
and edx, 0xff
or ecx, edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], 0x40810
shl ecx, 8
and edx, 3
or ecx, edx
mov dword [eax + 0x14], ecx
add eax, 0x18
mov dword [eax], 0x60000fff
add eax, 4
mov dword [eax], 0x40080
mov dword [eax + 4], ebx
add eax, 8
test byte [esi + 0x103b0], 1
je 0x394aa6
mov dword [eax], 0x60000001
add eax, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov dword [eax], 0x40090
mov dword [eax + 4], 0x11111111
mov dword [eax + 8], 0x40088
mov dword [eax + 0x10], 0x4008c
mov dword [eax + 0x14], 0xffffffff
and ecx, 0xffc
mov dword [eax + 0xc], ecx
add eax, 0x18
mov dword [eax], 0x60000fff
add eax, 4
mov dword [eax], 0x40080
mov dword [eax + 4], ebx
add eax, 8
sub eax, dword [edx]
xor ecx, ecx
cmp dword [esi + 0x103a4], ebx
jbe 0x394b13
mov edx, dword [esp + 0x1c]
mov edi, dword [edx]
add ecx, 1
mov dword [edi], eax
add edx, 4
cmp ecx, dword [esi + 0x103a4]
jb 0x394b01
mov eax, dword [esi + 0x103a8]
mov ecx, dword [esi + eax*4 + 0x12f20]
mov edx, dword [esp + 0xc]
mov dword [edx + ecx], 0xffffffff
mov eax, dword [esi + 0x103a8]
mov ecx, dword [esi + eax*4 + 0x12f20]
mov dword [ecx + 0xd0], 0x43214321
mov edi, 0x40094
add dword [esp + 0x14], 8
add dword [esp + 0x18], 4
add dword [esp + 0x1c], 0x10
add dword [esp + 0xc], 0x60
add ebp, 1
cmp ebp, dword [esi + 0x1020c]
jb 0x394840
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
xor ecx, ecx
cmp dword [esi + 0x1020c], ebx
mov dword [esp + 0x1c], ecx
jbe 0x394cc4
jmp 0x394b90
mov eax, 1
shl eax, cl
test dword [esp + 0x84], eax
mov dword [esp + 0x2c], eax
je 0x394cb1
neg ecx
sbb ecx, ecx
and ecx, 0x40000
add ecx, 0x40000
test dword [esi + 0x10480], ecx
jne 0x394c96
mov edx, dword [esi + 0x103a8]
push 1
push edx
push eax
push esi
call fcn.003928f0
mov ecx, dword [esi + 0x103a8]
mov edx, dword [esi + ecx*4 + 0x12f20]
cmp dword [edx + 0xd0], 0x12341234
je 0x394c78
call fcn.001e3310
call fcn.001e3310
mov eax, dword [esi + 0x12e8c]
mov cx, word [eax + 0x11e]
cmp cx, 0xffff
mov eax, dword [eax + 0x118]
je 0x394c78
push esi
call fcn.00049c50
cmp edx, dword [esp + 0x3c]
jg 0x394c41
jl 0x394c29
cmp eax, dword [esp + 0x38]
jae 0x394c41
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x394c5b
pop ebp
pop edi
mov eax, 0xee00000
pop ebx
add esp, 0x6c
ret 0xc
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add edi, 0x320
adc ecx, ebx
cmp ecx, edx
jl 0x394c78
jg 0x394c5b
cmp edi, eax
jb 0x394c78
mov ecx, dword [esi + 0x103a8]
mov edx, dword [esi + ecx*4 + 0x12f20]
cmp dword [edx + 0xd0], 0x12341234
jne 0x394bf1
mov eax, dword [esi + 0x103a8]
mov ecx, dword [esp + 0x2c]
push ebx
push eax
push ecx
push esi
call fcn.003928f0
mov edi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x12bfc]
push edx
push eax
push edi
push ecx
call fcn.00049ad0
mov ecx, dword [esp + 0x1c]
add ecx, 1
cmp ecx, dword [esi + 0x1020c]
mov dword [esp + 0x1c], ecx
jb 0x394b90
mov ecx, dword [esi + 0x104a4]
mov eax, dword [esp + 0x84]
mov edx, 1
shl edx, cl
test eax, edx
je 0x394cf1
mov ecx, 0x400
or dword [edi + 0x104], ecx
cmp ebp, ebx
je 0x394cf1
or dword [ebp + 0x104], ecx
mov ecx, dword [esi + 0x104a8]
mov edx, 1
shl edx, cl
test eax, edx
je 0x394d17
mov eax, 0x800
or dword [edi + 0x104], eax
cmp ebp, ebx
je 0x394d17
or dword [ebp + 0x104], eax
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x6c
ret 0xc