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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
xor esi, esi
mov word [esp + 0x22], si
mov word [esp + 0x20], si
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov esi, 6
test edx, edx
js 0x41e35d
mov esi, edx
mov edx, eax
or edx, ecx
je 0x41e36d
mov ebx, esi
and ebx, 0x400
jmp 0x41e381
mov edi, esi
and edi, 0x400
xor ebx, ebx
cmp dword [ebp + 0x14], 0
je 0x41e387
test edi, edi
jne 0x41e387
mov edi, ebx
mov bx, 8
mov edx, dword [ebp + 8]
bt esi, 0x10
jb 0x41e399
movzx ebx, bx
or ebx, 0x800
mov dword [esp + 0x24], ebx
and esi, 0xf
sete bl
test edi, edi
setne bh
test edx, edx
je 0x41e466
mov edx, dword [edx + 0x48]
mov dword [esp], edx
test edx, edx
je 0x41e45c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x41e45c
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x41e45c
or dh, dl
je 0x41e45c
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete dh
test dh, dl
jne 0x41e45c
cmp esi, 0xb
jae 0x41e45c
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp]
cmp dword [edx + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x41e43e
cmp edx, 0xffffffff
jne 0x41e454
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x41e466
test ecx, ecx
jne 0x41e44a
cmp edx, 0xffff
jne 0x41e454
mov edx, dword [esp]
mov dword [edx + 0x34], 1
or eax, ecx
je 0x41e470
test edi, edi
jne 0x41e470
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
call fcn.0041ee66
test eax, eax
je 0x41e509
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x41e49e
lea eax, [esp + 0x88]
push eax
call fcn.0045cb41
add esp, 4
lea eax, [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26]
push eax
call fcn.0041ee6f
add esp, 8
test edi, edi
je 0x41e4c4
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
mov bh, 1
jmp 0x41e4f7
or bl, bh
xor ecx, ecx
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
call fcn.004167e0
add esp, 0xc
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
cmp ecx, 4
setb bh
jb 0x41e4f3
mov eax, esi
or bh, bl
mov esi, eax
push dword [ebp + 0xc]
call fcn.0045eb00
add esp, 4
cmp eax, 0x10000
jb 0x41e518
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x41e466
mov edx, eax
mov byte [esp + 0x44], bh
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
call fcn.0041eee6
mov edx, dword [esp + 0x18]
mov ecx, dword [esp]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x58], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x7c]
add ecx, edx
setb bl
add ecx, dword [esp + 0x58]
adc ebx, 0
mov dword [esp + 0x34], eax
mov eax, ecx
add eax, 0x4a
adc ebx, 0
mov edx, 0xfffffffe
cmp edx, eax
mov eax, 0
sbb eax, ebx
jae 0x41e57d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x41e466
mov eax, dword [esp]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x41e5f5
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x7c]
add eax, dword [ebp + 0x38]
mov ebx, 0
adc ebx, 0xffffffff
add eax, dword [ebp + 0x40]
adc ebx, 0
mov edx, dword [esp + 0x18]
add edx, edx
add eax, edx
adc ebx, dword [esp + 0x10]
add eax, dword [esp + 0x34]
adc ebx, 0
add eax, dword [esp + 0x58]
adc ebx, 0
mov edx, dword [ebp + 8]
add eax, dword [edx]
adc ebx, dword [edx + 4]
mov edx, dword [esp + 0x18]
add eax, 0x72
adc ebx, 0
cmp ebx, 0xffffffff
je 0x41e5f5
mov eax, dword [esp]
mov dword [eax + 0x34], 1
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x58], 0
test edx, edx
mov ebx, edx
mov edx, dword [ebp + 8]
je 0x41e635
mov eax, dword [ebp + 0xc]
cmp byte [ebx + eax - 1], 0x2f
mov ebx, dword [ebp + 0x14]
jne 0x41e638
test ebx, ebx
jne 0x41e629
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 0x10
or eax, dword [esp + 0x28]
je 0x41e638
mov dword [edx + 0x1c], 0x18
jmp 0x41e466
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41e645
mov eax, 0x1c
add eax, ecx
add eax, 0x2e
mov ecx, dword [esp]
cmp dword [ecx + 8], eax
jae 0x41e66b
mov ecx, dword [ebp + 8]
mov edx, dword [esp]
push 1
push eax
call fcn.0042930b
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
je 0x41e6ca
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x41e68c
mov ecx, dword [esp]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.0042930b
add esp, 8
test eax, eax
je 0x41e6ca
mov cl, byte [esp + 0x44]
xor cl, 1
xor eax, eax
test ebx, ebx
mov byte [esp + 0xc], cl
je 0x41e6d9
test cl, cl
mov ecx, dword [ebp + 8]
je 0x41e6dc
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x41e6dc
mov dword [ecx + 0x1c], 0x10
jmp 0x41e466
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x41e466
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 8]
mov edx, ebx
push dword [esp + 0x34]
push dword [esp + 8]
call fcn.0041eeff
add esp, 8
test eax, eax
je 0x41e7d0
test edi, edi
setne byte [esp + 0x54]
xor ecx, ecx
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edi, eax
mov edx, dword [esp + 0x3c]
adc edx, ecx
add ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 4]
adc ebx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov word [esp + 0xa4], 0
mov al, byte [esp + 0x54]
or al, byte [esp + 0xc]
movzx eax, al
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp]
cmp dword [eax + 0x34], ecx
mov eax, ebx
je 0x41e7e5
mov dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, 0xfffffffe
cmp eax, ebx
mov eax, 0
mov dword [esp], ecx
sbb eax, ecx
jb 0x41e8d7
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, edi
sbb eax, edx
jb 0x41e8d7
xor eax, eax
mov ebx, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 0xc], edx
jmp 0x41e93e
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x41e466
cmp dword [esp + 0x4c], 0
jne 0x41ec7f
test eax, eax
jne 0x41ec7f
mov dword [esp + 4], eax
mov dword [esp], edi
movzx edi, word [esp + 0x20]
movzx ebx, word [esp + 0x22]
movzx eax, word [esp + 0x24]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], edx
mov edx, 0xffff
mov eax, dword [ebp + 0x38]
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
mov dword [esp + 0x58], ebx
push ebx
push dword [esp + 0x24]
push dword [esp + 0x4c]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push eax
call fcn.0041eff9
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x41ea39
mov eax, dword [esp + 8]
add eax, 0x1e
mov ecx, dword [esp + 4]
adc ecx, 0
mov ebx, dword [esp + 0x18]
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push ecx
mov dword [esp + 0x14], eax
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x41eac1
mov edx, dword [esp + 8]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
adc ecx, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x50], 0
jmp 0x41ea4d
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41e8eb
xor eax, eax
jmp 0x41e8ef
lea eax, [esp + 0x38]
mov edi, 0xfffffffe
cmp edi, ebx
mov edi, 0
sbb edi, dword [esp]
mov edx, 0
jb 0x41e90c
mov edi, 0
jmp 0x41e910
lea edi, [esp + 0x48]
mov ebx, dword [esp + 0x24]
jae 0x41e91a
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ecx
push eax
push edi
call fcn.0041ef95
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
movzx edi, word [esp + 0x20]
movzx ecx, word [esp + 0x22]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x38]
add eax, ecx
movzx ecx, bx
mov dword [esp + 0x40], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x5c], ecx
xor ebx, ebx
mov edx, 0xffff
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
push dword [esp + 0x58]
push dword [esp + 0x48]
push dword [esp + 0x68]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.0041eff9
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x41ea39
mov ecx, dword [esp + 8]
add ecx, 0x1e
mov ebx, dword [esp + 4]
adc ebx, 0
mov eax, edi
mov edi, dword [esp + 0x18]
push edi
push dword [ebp + 0xc]
push ebx
mov dword [esp + 0x14], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x41eac1
mov edx, dword [esp + 8]
add edx, edi
adc ebx, 0
cmp dword [esp + 0x1c], 0
mov ecx, ebx
je 0x41ea45
lea eax, [esp + 0xa8]
mov ebx, dword [esp + 0x50]
push ebx
push eax
mov dword [esp + 0xc], ecx
push ecx
mov edi, edx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x41eadd
mov edx, edi
add edx, dword [esp + 0x50]
mov ecx, dword [esp + 4]
adc ecx, 0
jmp 0x41ea4d
mov dword [edi + 0x1c], 0x13
jmp 0x41e466
mov dword [esp + 0x1c], 0
mov edi, dword [ebp + 0x38]
test edi, edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
je 0x41ea7e
push edi
push dword [ebp + 0x34]
push ecx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x41eadd
mov eax, dword [ebp + 0x38]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp byte [esp + 0x44], 0
je 0x41eaec
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x41eac1
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp + 4], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x41eb6b
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x41e466
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x41e466
cmp dword [ebp + 0x14], 0
je 0x41eb6b
lea edi, [esp + 0x60]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
push eax
push 0xfffffffffffffff1
push esi
call fcn.004178b7
add esp, 0xc
push eax
push edi
push 0x41f0d5
mov esi, dword [esp + 0x1c]
push esi
call fcn.00417921
add esp, 0x10
push 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.0041b0b8
add esp, 0x10
cmp eax, 1
jne 0x41ec5f
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp], eax
or ecx, eax
je 0x41ed64
mov dword [esp + 0x60], 0x8074b50
mov edx, dword [esp + 0x78]
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x66], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x67], cl
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], 0
je 0x41ec7b
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], ch
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x6a], dl
mov edx, ebx
shr edx, 0x10
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esp + 0x6c], bl
mov byte [esp + 0x6d], bh
mov byte [esp + 0x6e], dl
mov byte [esp + 0x6f], cl
mov edx, esi
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x72], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x73], cl
mov dword [esp + 0x10], 0x38
mov dword [esp + 0x40], 0x30
mov ecx, 0x28
mov dword [esp + 0x44], 0x18
mov dword [esp + 0xc], 0x17
mov eax, dword [esp]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0x5c], 0x16
mov dword [esp + 0x80], 0x15
mov edi, 0x14
jmp 0x41ecd5
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x41e466
test ebx, ebx
je 0x41ec8e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x41e466
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x40], 0x10
mov ecx, 8
mov dword [esp + 0xc], 0xf
mov dword [esp + 0x5c], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x80], 0xd
mov edi, 0xc
mov dword [esp + 0x44], 0x10
mov ebx, esi
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
mov al, byte [esp + 0x17]
mov byte [esp + edi + 0x60], al
test cl, 0x20
jne 0x41ecee
mov edx, ebx
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x60], dl
mov ebx, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
test cl, 0x20
jne 0x41ed0e
mov edx, ebx
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 0x60], dl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
shrd esi, eax, cl
shr eax, cl
test cl, 0x20
jne 0x41ed29
mov eax, esi
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x60], al
lea eax, [esp + 0x60]
mov esi, dword [esp + 0x44]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x41e466
mov eax, dword [esp + 0x44]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x1c], 0
je 0x41edc3
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov eax, 0
sbb eax, dword [esp + 0x3c]
jb 0x41ed85
xor eax, eax
jmp 0x41ed89
lea eax, [esp + 0x38]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x41eda4
mov edi, 0
jmp 0x41eda8
lea edi, [esp + 0x48]
jae 0x41edae
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.0041ef95
add esp, 8
mov dword [esp + 0x50], eax
mov ecx, 0xffff
mov esi, dword [esp + 0x50]
and esi, ecx
mov eax, dword [esp + 0x18]
and eax, ecx
movzx edi, word [esp + 0x84]
movzx ebx, word [esp + 0x54]
movzx ecx, word [esp + 0x24]
mov dword [esp], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x60]
push dword [esp + 0x48]
push dword [esp + 0x48]
push edi
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x44]
push dword [esp + 0x9c]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0xb4]
push dword [ebp + 0x18]
push esi
push dword [esp + 0x60]
push eax
call fcn.0041f114
add esp, 0x4c
test eax, eax
je 0x41e466
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x41e468