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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
lea eax, [esi + 0x4a4]
test ebx, ebx
je 0x1039616d
test eax, eax
je 0x1039615d
mov ecx, 0x30
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
jmp 0x1039617d
push 0xc0
push 0
push ebx
call fcn.10425c00
add esp, 0xc
call fcn.1043a2d6
mov dword [eax], 0x16
call fcn.1043a1d8
cmp byte [esi + 0x938], 0
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
jne 0x1039677a
cmp byte [esi + 0x60d5], 2
jne 0x103966fc
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0xc]
or ecx, 3
mov edi, dword [ebp + 0x10]
or eax, 0x280
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x2c], 0xc0c0000
mov dword [ebx + 0x30], 0
mov dword [ebx + 0xc], eax
cmp edi, 0x14
ja 0x10396204
or dword [ebx + 0x40], 3
and eax, 0xfc9fffff
and ecx, 0xfffffffc
mov dword [ebx + 0x2c], 0x8000000
or eax, 0x900000
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], 0xc0c0000
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0xc], eax
cmp edi, 5
jbe 0x10396204
and eax, 0xffffffc9
or eax, 9
mov dword [ebx + 0xc], eax
mov edx, dword [esi + 0x56c]
and edx, 0x3000000
neg edx
sbb edx, edx
and eax, 0xfff7ffff
and edx, 0x80000
or edx, eax
mov eax, dword [ebx + 0x90]
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0x9c0]
neg ecx
sbb ecx, ecx
and eax, 0xfffffdff
and ecx, 0x200
or ecx, eax
mov dword [ebx + 0x90], ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x1c]
test dword [eax + 0x44], 0x8000000
jne 0x1039626f
test dword [eax + 0x4c], 0x100
jne 0x1039626f
test dword [eax + 0x48], 0x800000
je 0x103966da
mov eax, dword [ebx + 0x14]
or ecx, 0x7fe0000
and eax, 0xf23fffff
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebx + 0x94]
or eax, 0x2000000
mov dword [ebx + 0x14], eax
and ecx, 0xffffd65c
mov eax, dword [ebx + 0x18]
and edx, 0xfdafffec
and eax, 0xffffffb6
or edx, 0x1aa002c
or eax, 0x1b6
mov dword [ebx + 0xc], edx
or ecx, 0x565c
mov dword [ebx + 0x18], eax
cmp edi, 0xa
ja 0x1039638c
mov eax, dword [ebx + 0x34]
lea edx, [ebx + 0x7c]
and eax, 0xfffffffd
mov dword [ebx + 0x2c], 0xc000000
or eax, 1
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], eax
and ecx, 0xfe147fff
mov eax, dword [ebx + 0x40]
or ecx, 0x140000
and eax, 0xfffffffd
mov dword [ebx + 0x38], 0xc000000
or eax, 1
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x4c]
and eax, 0xfffffffd
mov dword [ebx + 0x94], ecx
or eax, 1
mov dword [ebx + 0x44], 0x1e0c0000
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x58]
and eax, 0xfffffffd
mov dword [ebx + 0x48], 0xc
or eax, 1
mov dword [ebx + 0x50], 0x1e0c0000
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x64]
and eax, 0xfffffffd
mov dword [ebx + 0x54], 0xc
or eax, 1
mov dword [ebx + 0x5c], 0xc000000
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x70]
and eax, 0xfffffffd
mov dword [ebx + 0x60], 0
or eax, 1
mov dword [ebx + 0x68], 0xc000000
and dword [edx], 0xfffffffd
mov dword [ebx + 0x70], eax
mov eax, dword [edx]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x74], 0x1e0c0000
mov dword [ebx + 0x78], 0xc
jmp 0x103965f0
lea edx, [ebx + 0x7c]
cmp edi, 0x23
ja 0x1039642e
or dword [ebx + 0x34], 3
and ecx, 0xfe197fff
or dword [ebx + 0x40], 3
or ecx, 0x190000
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x2c], 0xc0c0000
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0xc0c0000
mov dword [ebx + 0x3c], 0
or dword [ebx + 0x4c], 3
or dword [ebx + 0x58], 3
or dword [ebx + 0x64], 3
or dword [ebx + 0x70], 3
or dword [edx], 2
mov eax, dword [edx]
mov dword [ebx + 0x44], 0x1e1e0c00
mov dword [ebx + 0x48], 0xc
mov dword [ebx + 0x50], 0x1e1e0c00
mov dword [ebx + 0x54], 0xc
mov dword [ebx + 0x5c], 0xc0c0000
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x68], 0xc0c0000
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x74], 0x1e1e0c00
mov dword [ebx + 0x78], 0xc
jmp 0x103965f0
cmp edi, 0x32
ja 0x103964af
or dword [ebx + 0x34], 3
and ecx, 0xfe1e7fff
or dword [ebx + 0x40], 3
or ecx, 0x1e0000
mov dword [ebx + 0x2c], 0xc0c0000
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0xc0c0000
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x4c]
or dword [ebx + 0x64], 3
and eax, 0xfffffffd
or dword [ebx + 0x70], 3
or eax, 1
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x58]
and eax, 0xfffffffd
mov dword [ebx + 0x94], ecx
or eax, 1
mov dword [ebx + 0x5c], 0xc0c0000
and dword [edx], 0xfffffffd
mov dword [ebx + 0x58], eax
mov eax, dword [edx]
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x68], 0xc0c0000
mov dword [ebx + 0x6c], 0
jmp 0x103965c6
mov eax, dword [ebx + 0x34]
cmp edi, 0x5a
ja 0x10396530
or dword [ebx + 0x40], 3
or eax, 3
mov dword [ebx + 0x34], eax
and ecx, 0xfe237fff
mov dword [ebx + 0x2c], 0xc0c0000
or ecx, 0x230000
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0xc0c0000
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x4c]
or dword [ebx + 0x64], 3
and eax, 0xfffffffd
or eax, 1
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x58]
and eax, 0xfffffffd
mov dword [ebx + 0x5c], 0xc0c0000
or eax, 1
mov dword [ebx + 0x60], 0
or dword [ebx + 0x70], 3
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x68], 0xc0c0000
mov dword [ebx + 0x6c], 0
jmp 0x103965bf
and eax, 0xfffffffd
mov dword [ebx + 0x2c], 0xff0c0c00
or eax, 1
mov dword [ebx + 0x30], 0xc0c
mov dword [ebx + 0x34], eax
and ecx, 0xfe4b7fff
mov eax, dword [ebx + 0x40]
or ecx, 0x4b0000
and eax, 0xfffffffd
mov dword [ebx + 0x38], 0xff0c0c00
or eax, 1
mov dword [ebx + 0x3c], 0xc0c
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x4c]
and eax, 0xfffffffd
mov dword [ebx + 0x94], ecx
or eax, 1
mov dword [ebx + 0x5c], 0xff0c0c00
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x58]
and eax, 0xfffffffd
mov dword [ebx + 0x60], 0xc0c
or eax, 1
mov dword [ebx + 0x68], 0xff0c0c00
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x64]
and eax, 0xfffffffd
mov dword [ebx + 0x6c], 0xc0c
or eax, 1
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x70]
and eax, 0xfffffffd
or eax, 1
mov dword [ebx + 0x70], eax
mov eax, dword [edx]
and eax, 0xfffffffd
mov dword [edx], eax
mov dword [ebx + 0x44], 0xff0c0c00
mov dword [ebx + 0x48], 0xc0c
mov dword [ebx + 0x50], 0xff0c0c00
mov dword [ebx + 0x54], 0xc0c
mov dword [ebx + 0x74], 0xff0c0c00
mov dword [ebx + 0x78], 0xc0c
or eax, 1
mov dword [edx], eax
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
and eax, 0xc688ffff
or ecx, 0x6000000
or eax, 0x46880000
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], eax
cmp edi, 0x23
ja 0x10396694
or dword [ebx + 0x90], 0x8000000
and ecx, 0xfffffe49
mov edi, dword [ebp + 0xc]
or ecx, 0x49
mov edx, dword [ebx + 0x90]
mov dword [ebx + 0x94], ecx
mov eax, dword [esi + 0x61dc]
shl eax, 0xb
xor eax, dword [ebx + 0xc]
and eax, 0x80000
xor dword [ebx + 0xc], eax
xor eax, eax
mov ecx, dword [esi + 0x61dc]
shl ecx, 9
xor ecx, dword [ebx + 0xc]
and ecx, 0x20000
xor dword [ebx + 0xc], ecx
cmp edi, 1
mov ecx, 0x10000000
cmove eax, ecx
and edx, 0xefffffff
or eax, edx
and eax, 0xf88dffff
or eax, 0x8c0000
mov dword [ebx + 0x90], eax
jmp 0x103966dd
cmp edi, 0x32
ja 0x103966aa
and ecx, 0xfffffe52
or ecx, 0x52
mov dword [ebx + 0x94], ecx
jmp 0x103966c4
cmp edi, 0x5a
ja 0x103966da
and ecx, 0xfffffffb
or ecx, 3
mov dword [ebx + 0x94], ecx
cmp dword [esi + 0x478], 1
jle 0x103966da
mov eax, dword [ebx + 0x90]
and eax, 0xf88dffff
or eax, 0x8c0000
mov dword [ebx + 0x90], eax
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x9b4], 0
je 0x10396723
push dword [esi + 0x3c34]
mov ecx, esi
push dword [esi + 0x3c48]
push ebx
call fcn.103928e0
jmp 0x10396723
movzx eax, byte [esi + 0x9b4]
push ecx
push eax
push dword [esi + 0x3c34]
mov ecx, esi
push dword [esi + 0x3c48]
push ebx
call fcn.10392a70
and dword [ebx + 0x90], 0xfffffdff
cmp byte [esi + 0x938], 0
mov ecx, dword [ebp + 8]
jne 0x1039677a
mov edx, dword [esi + 0x3c34]
cmp edi, 1
mov eax, 0x14
mov dword [ebp + 0xc], 0x32
cmove eax, dword [ebp + 0xc]
cmp edx, eax
jbe 0x1039675d
cmp edx, 0x64
jae 0x10396759
and ecx, 3
cmp cl, 3
je 0x1039675d
xor ecx, ecx
jmp 0x10396762
mov ecx, 0x400
mov eax, dword [ebx + 0x90]
and eax, 0xfffffbff
or eax, ecx
and eax, 0xfffe07ff
mov dword [ebx + 0x90], eax
cmp dword [esi + 0x338], 0
je 0x1039678a
or dword [ebx + 0x14], 0x200000
cmp dword [ebp + 0x18], 0
jle 0x10396833
mov eax, dword [ebx + 0x34]
and eax, 0xfffffffd
and dword [ebx + 0x1c], 0xf000c000
or eax, 1
and dword [ebx + 0x98], 0x8000ffff
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x40]
and eax, 0xfffffffd
and dword [ebx + 0xc], 0xd7f5fd7f
or eax, 1
mov dword [ebx + 0x2c], 0x3f1e0000
mov dword [ebx + 0x40], eax
mov eax, dword [ebx]
and eax, 0xffffbffd
mov dword [ebx + 0x30], 0x1e
or eax, 1
mov dword [ebx + 0x38], 0x3f1e0000
mov dword [ebx], eax
mov eax, dword [ebx + 0x94]
and eax, 0xfe197fff
mov dword [ebx + 0x3c], 0x1e
or dword [ebx + 0x14], 0x80000000
or eax, 0x190000
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x14]
or eax, 0x20000000
mov dword [ebx + 0x14], eax
cmp dword [esi + 0x338], 0
jne 0x10396833
cmp byte [esi + 0x9b4], 0
jne 0x10396833
and eax, 0xffdfffff
and eax, 0xfff7ffff
mov dword [ebx + 0x14], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14