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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x445004]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
test edi, edi
jne 0x410419
lea ecx, [edi + 1]
jmp 0x4109e1
mov eax, dword [edi]
mov dword [esp + 0x38], eax
cmp eax, 4
jne 0x4105d5
lea edx, [edi + 0x50]
mov dword [esp + 0xac], 0
mov ecx, edx
mov dword [esp + 0xb0], 0xf
mov byte [esp + 0x9c], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410450
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.00402780
push 0x30
call fcn.00415fcb
mov esi, eax
add esp, 4
lea eax, [esp + 0x9c]
mov dword [esp + 0x10], esi
push eax
lea ecx, [esi + 4]
mov dword [esi], 0x4408d8
call fcn.00401c00
mov dword [esi + 0x1c], 0
mov dword [esi], 0x440a64
mov dword [esi + 0x20], 0
push 0x18
mov byte [esi + 0x24], 0
call fcn.00415fcb
mov edx, dword [esp + 0xb0]
lea ecx, [edi + 0x20]
add esp, 4
mov esi, eax
cmp dword [esp + 0xb0], 0x10
lea eax, [esp + 0x8c]
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0xa4]
cmovae ecx, dword [esp + 0xa4]
push eax
call fcn.00414200
mov eax, dword [esp + 0x98]
add esp, 4
mov ecx, dword [esp + 0x98]
bswap eax
bswap ecx
push eax
push ecx
mov ecx, esi
call fcn.00412c00
mov esi, dword [esp + 0x10]
push 0x18
mov dword [esi + 0x28], eax
call fcn.00415fcb
mov ecx, dword [esi + 0x28]
add esp, 4
mov ecx, dword [ecx + 4]
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
add esi, 1
lea ecx, [edi + 0x38]
push ecx
push dword [esp + 0x1c]
adc edx, 0
mov ecx, eax
push edx
push esi
call fcn.00412c00
mov esi, dword [esp + 0x10]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], esi
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xb0]
cmp ecx, 0x10
jb 0x41059e
mov eax, dword [esp + 0x9c]
inc ecx
xor dl, dl
jne 0x410a05
cmp ecx, 0x1000
jb 0x410595
test al, 0x1f
jne 0x410a05
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x410a05
sub eax, ecx
cmp eax, 4
jb 0x410a05
cmp eax, 0x23
ja 0x410a05
mov eax, ecx
push eax
call fcn.00415ffb
add esp, 4
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0x1c]
or eax, ecx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0xf
xor ecx, ecx
mov byte [esp + 0x9c], 0
mov dword [esi + 0x1c], eax
call fcn.00410a20
mov dword [ebx], esi
jmp 0x4109ec
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x14]
mov esi, dword [edx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x2c], eax
cmp ecx, 0x30
je 0x410639
cmp ecx, 0x40
jb 0x410639
test cl, 7
jne 0x410639
lea eax, [ecx + 0x14]
cmp eax, dword [esi + 0xc]
ja 0x410639
mov edx, dword [esi + 4]
add edx, ecx
cmp dword [edx + 4], 0xc8799269
jne 0x410639
cmp dword [edx], 0x14
jb 0x410639
mov eax, dword [edx]
add eax, ecx
cmp eax, dword [esi + 0xc]
ja 0x410639
mov eax, dword [edx + 8]
cmp eax, 0xbcea225b
jne 0x410639
mov esi, dword [esi + 4]
add esi, ecx
je 0x410639
add esi, 0x10
jmp 0x41063b
xor esi, esi
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [eax + 4]
call fcn.00412480
mov edx, eax
test esi, esi
je 0x4109dc
mov eax, dword [esp + 0x14]
lea ecx, [eax - 2]
cmp ecx, 0x3ffffffc
ja 0x4109dc
lea ecx, [eax*4 + 4]
cmp edx, ecx
jb 0x4109dc
push 0x14
lea ebx, [eax + 1]
call fcn.00415fcb
add esp, 4
mov ecx, eax
push ebx
call fcn.00411fd0
mov ebx, eax
xor edx, edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ebx
add eax, 1
je 0x4106bf
nop word [eax + eax]
test edx, edx
je 0x4106ad
mov eax, dword [esi + edx*4]
cmp eax, dword [esi + edx*4 - 4]
jle 0x4106d3
mov eax, dword [ebx]
mov ecx, dword [esi + edx*4]
mov dword [eax + edx*4], ecx
inc edx
mov eax, dword [esp + 0x14]
inc eax
cmp edx, eax
jb 0x4106a0
mov ecx, ebx
call fcn.00412040
mov dword [ebx + 0xc], eax
cmp eax, dword [esp + 0x2c]
je 0x4106eb
xor esi, esi
jmp 0x4106d9
xor esi, esi
test ebx, ebx
je 0x4106f5
mov ecx, ebx
call fcn.00407aa0
push ebx
call fcn.00415ffb
add esp, 4
jmp 0x4106f5
mov dword [esp + 0x30], 0
mov esi, ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
call fcn.0040f0f0
test esi, esi
jne 0x410735
lea ecx, [esi + 3]
call fcn.00410a20
mov edi, dword [esp + 0x10]
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00415d55
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0040ed60
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, 0x1fffffff
jbe 0x410755
xor esi, esi
jmp 0x41075c
lea esi, [eax*8]
mov eax, dword [edi + 0x1c]
lea edx, [edi + 0x1c]
test esi, esi
je 0x4109d2
test eax, eax
je 0x410786
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
call fcn.00412480
cmp eax, esi
jb 0x4109d2
lea edx, [edi + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], 0x53215531
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 0
mov ecx, dword [eax + 4]
mov eax, esi
shr eax, 1
mov dword [esp + 0x50], eax
lea eax, [edi + 0x50]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0xb4]
push eax
mov byte [esp + 0x70], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x4c], 0x53215531
mov dword [esp + 0x50], esi
mov byte [esp + 0x58], 0
mov dword [esp + 0x5c], edx
call fcn.00401bc0
mov eax, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0xc], esi
cmp eax, 3
ja case.default.0x4107f2
jmp dword [eax*4 + 0x410a0c]
push 0x2c
call fcn.00415fcb
add esp, 4
lea ecx, [edi + 0x38]
push ecx
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x68]
push ecx
push ebx
sub esp, 8
lea ecx, [esp + 0xd0]
push ecx
mov ecx, eax
call fcn.00409720
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x7c], esi
push eax
call fcn.0040ae10
mov ecx, dword [esp + 0x1c]
jmp 0x41097f
push 0x34
call fcn.00415fcb
add esp, 4
lea ecx, [edi + 0x38]
mov esi, eax
lea eax, [esp + 0x44]
push ecx
lea ecx, [edi + 0x20]
push ecx
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
push ebx
sub esp, 8
lea eax, [esp + 0xd0]
push eax
call fcn.00409720
mov dword [esi], 0x4407d8
push 0x2c
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00415fcb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
lea ecx, [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x24], esi
call fcn.0040ae10
mov ecx, dword [esp + 0x20]
jmp 0x41097f
push 0x34
call fcn.00415fcb
add esp, 4
lea ecx, [edi + 0x38]
mov esi, eax
lea eax, [esp + 0x44]
push ecx
lea ecx, [edi + 0x20]
push ecx
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
push ebx
sub esp, 8
lea eax, [esp + 0xd0]
push eax
call fcn.0040aa70
lea eax, [esp + 0x24]
mov dword [esi], 0x440770
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0
mov dword [esp + 0x28], esi
call fcn.0040ae10
mov ecx, dword [esp + 0x24]
jmp 0x41097f
push 0x2c
call fcn.00415fcb
add esp, 4
lea ecx, [edi + 0x38]
mov esi, eax
lea eax, [esp + 0x44]
push ecx
lea ecx, [edi + 0x20]
push ecx
push eax
lea eax, [esp + 0x68]
mov ecx, esi
push eax
push ebx
sub esp, 8
lea eax, [esp + 0xd0]
push eax
call fcn.00409720
lea eax, [esp + 0x28]
mov dword [esi], 0x4406b8
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x2c], esi
call fcn.0040ae10
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x410989
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [esp + 0xc]
test esi, esi
je case.default.0x4107f2
mov eax, dword [esi + 0x1c]
xor ecx, ecx
or eax, dword [esp + 0x3c]
mov dword [esi + 0x1c], eax
call fcn.00410a20
mov esi, dword [esp + 0xc]
jmp 0x4109b2
mov ecx, 8
call fcn.00410a20
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xb4]
mov dword [edi], esi
call fcn.00402630
lea ecx, [esp + 0x40]
call fcn.0040f0f0
jmp 0x41071c
mov ecx, 4
jmp 0x41070d
mov ecx, 3
call fcn.00410a20
mov dword [ebx], 0
mov ecx, dword [esp + 0xcc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415d55
mov esp, ebp
pop ebp
ret 8
call fcn.0041cdf3
nop
stc
pop es
inc ecx
add byte [edi + 8], al
inc ecx
add ch, cl
or byte [ecx], al
daa
or dword [ecx], eax
int3