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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
test eax, 0x80000
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
je 0x39a88f
test dword [esi + 0x14], 0x104001
jne 0x39a88f
cmp dword [esi + 0x2a0], ebx
je 0x39a884
test byte [ebp + 0x1047e], 0x40
jne 0x39a88f
mov edi, 1
mov dword [esp + 0x3c], edi
jmp 0x39a894
mov edi, 1
mov edx, dword [esi + 0x24]
mov ecx, edx
and ecx, 0x200
je 0x39a8b0
test dword [esi + 0x14], 0x104001
je 0x39a8b0
mov dword [esp + 0x3c], edi
jmp 0x39a8b8
xor ebx, ebx
cmp dword [esp + 0x3c], edi
jne 0x39a8c0
cmp ecx, ebx
je 0x39a8c0
mov dword [esp + 0x10], edi
test eax, 0x20000
jne 0x39a8cf
cmp dword [ebp + 0x102a4], ebx
je 0x39a8db
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], edi
test dh, 1
je 0x39a8f8
test byte [esi + 0x14], 0x40
jne 0x39a8f0
test byte [esi + 0x19], 2
mov dword [esp + 0x14], edi
je 0x39a8f8
mov dword [esp + 0x14], 2
mov eax, dword [ebp + 0x10288]
mov dword [esi + 0x1f8], eax
mov eax, 0x4000
test dword [esi + 0x14], eax
mov dword [esi + 0x1ec], ebx
mov dword [esp + 0x18], 0x2000
je 0x39a94a
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x28], 0x204
mov dword [esp + 0x2c], 0x404
mov dword [esp + 0x30], 0x804
mov dword [esp + 0x34], 0x4004
jmp 0x39a972
mov dword [esp + 0x20], pe_nt_image_headers32
mov dword [esp + 0x28], 0x200
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x30], 0x810
mov dword [esp + 0x34], 0x4010
test dword [ebp + 0x10], eax
je 0x39a993
test dword [ebp + 0x10244], 0x580300
je 0x39a993
test dword [ebp + 0x1023c], eax
jne 0x39a993
mov dword [esp + 0x18], 0x2010
cmp dword [esi + 0x78], ebx
je 0x39a9ff
test ebx, ebx
jne 0x39a9a6
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
jmp 0x39a9ae
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], edx
xor edi, edi
cmp ebx, 2
jne 0x39a9c1
test byte [esi + 0x19], bl
je 0x39a9c1
mov eax, 0x10
jmp 0x39a9c3
xor eax, eax
or eax, dword [esp + 0x20]
mov ecx, ebp
push eax
push 0
push 0
push 0
push ebx
push edi
mov eax, esi
call fcn.0039a720
test eax, eax
je 0x39ac0e
lea ecx, [edi + ebx*2]
add edi, 1
cmp edi, dword [esp + 0x24]
mov dword [esi + ecx*4 + 0x1fc], eax
jbe 0x39a9b0
add ebx, 1
cmp ebx, dword [esp + 0x14]
jbe 0x39a998
xor ebx, ebx
test byte [ebp + 0x11], 0x80
je 0x39aa3e
xor edi, edi
lea ebx, [esi + 0x25c]
lea ecx, [ecx]
push 0x8010
push 0
push 0
push 0
push edi
push 0
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx], eax
add edi, 1
add ebx, 4
cmp edi, 5
jb 0x39aa10
xor ebx, ebx
test byte [esi + 0x775], 4
jne 0x39ac03
lea eax, [esi + 0x248]
xor edi, edi
mov ebx, eax
cmp dword [esp + 0xc], 0
jne 0x39aa65
cmp dword [esi + 0xc4], 0
je 0x39aab5
mov edx, dword [esp + 0x28]
push edx
push 0
push 0
push 0
push 0
push edi
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx - 0x34], eax
test byte [ebp + 0x11], 0x10
je 0x39aaae
push 0x1000
push 0
push 0
push 0
push 0
push edi
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx], eax
cmp dword [esp + 0xc], 0
jne 0x39aabe
cmp dword [esi + 0xc8], 0
je 0x39aae0
mov eax, dword [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push edi
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx - 0x2c], eax
add edi, 1
add ebx, 4
cmp edi, dword [esp + 0x1c]
jbe 0x39aa55
cmp dword [esp + 0xc], 0
jne 0x39ab00
cmp dword [esi + 0xb0], 0
je 0x39ab26
mov ecx, dword [esp + 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [esi + 0x224], eax
xor edi, edi
lea ebx, [esi + 0x228]
mov edi, edi
cmp dword [esp + 0xc], 0
jne 0x39ab3c
cmp edi, dword [esi + 0x44]
jge 0x39ab5d
mov edx, dword [esp + 0x34]
push edx
push 0
push 0
push edi
push 0
push 0
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx], eax
add edi, 1
add ebx, 4
cmp edi, 8
jl 0x39ab30
test byte [ebp + 0x11], 0x40
je 0x39abb2
test dword [esi + 0x14], 0x104001
jne 0x39abb2
xor edi, edi
cmp dword [ebp + 0x12be0], edi
jbe 0x39abb2
lea ebx, [esi + 0x250]
mov eax, dword [esp + 0x18]
push eax
push 0
push edi
push 0
push 0
push 0
mov eax, esi
mov ecx, ebp
call fcn.0039a720
test eax, eax
je 0x39ac0e
mov dword [ebx], eax
add edi, 1
add ebx, 4
cmp edi, dword [ebp + 0x12be0]
jb 0x39ab87
cmp dword [esp + 0x3c], 1
jne 0x39ac03
cmp dword [esp + 0x1c], 0
jne 0x39abe4
mov ecx, dword [esi + 0x214]
mov edx, dword [esi + 0x248]
mov eax, dword [esi + 0x21c]
mov dword [esi + 0x218], ecx
mov dword [esi + 0x24c], edx
mov dword [esi + 0x220], eax
cmp dword [esp + 0x10], 0
jne 0x39ac03
mov ecx, dword [esi + 0x204]
mov edx, dword [esi + 0x20c]
mov dword [esi + 0x208], ecx
mov dword [esi + 0x210], edx
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 4
pop edi
pop ebp
mov eax, 0xee00006
pop ebx
add esp, 0x2c
ret 4