Function at 0x414593
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 0x4145d2
mov esi, edx
mov edx, eax
or edx, ecx
je 0x4145e2
mov ebx, esi
and ebx, 0x400
jmp 0x4145f6
mov edi, esi
and edi, 0x400
xor ebx, ebx
cmp dword [ebp + 0x14], 0
je 0x4145fc
test edi, edi
jne 0x4145fc
mov edi, ebx
mov bx, 8
mov edx, dword [ebp + 8]
bt esi, 0x10
jb 0x41460e
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 0x4146db
mov edx, dword [edx + 0x48]
mov dword [esp], edx
test edx, edx
je 0x4146d1
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x4146d1
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x4146d1
or dh, dl
je 0x4146d1
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete dh
test dh, dl
jne 0x4146d1
cmp esi, 0xb
jae 0x4146d1
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 0x4146b3
cmp edx, 0xffffffff
jne 0x4146c9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x4146db
test ecx, ecx
jne 0x4146bf
cmp edx, 0xffff
jne 0x4146c9
mov edx, dword [esp]
mov dword [edx + 0x34], 1
or eax, ecx
je 0x4146e5
test edi, edi
jne 0x4146e5
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.004150db
test eax, eax
je 0x41477e
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x414713
lea eax, [esp + 0x88]
push eax
call fcn.0043d455
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.004150e4
add esp, 8
test edi, edi
je 0x414739
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
mov bh, 1
jmp 0x41476c
or bl, bh
xor ecx, ecx
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
call fcn.0040db70
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 0x414768
mov eax, esi
or bh, bl
mov esi, eax
push dword [ebp + 0xc]
call fcn.0043eec0
add esp, 4
cmp eax, 0x10000
jb 0x41478d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4146db
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.0041515b
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 0x4147f2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4146db
mov eax, dword [esp]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x41486a
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 0x41486a
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 0x4148aa
mov eax, dword [ebp + 0xc]
cmp byte [ebx + eax - 1], 0x2f
mov ebx, dword [ebp + 0x14]
jne 0x4148ad
test ebx, ebx
jne 0x41489e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 0x10
or eax, dword [esp + 0x28]
je 0x4148ad
mov dword [edx + 0x1c], 0x18
jmp 0x4146db
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4148ba
mov eax, 0x1c
add eax, ecx
add eax, 0x2e
mov ecx, dword [esp]
cmp dword [ecx + 8], eax
jae 0x4148e0
mov ecx, dword [ebp + 8]
mov edx, dword [esp]
push 1
push eax
call fcn.0041d0c3
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
je 0x41493f
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x414901
mov ecx, dword [esp]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.0041d0c3
add esp, 8
test eax, eax
je 0x41493f
mov cl, byte [esp + 0x44]
xor cl, 1
xor eax, eax
test ebx, ebx
mov byte [esp + 0xc], cl
je 0x41494e
test cl, cl
mov ecx, dword [ebp + 8]
je 0x414951
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 0x414951
mov dword [ecx + 0x1c], 0x10
jmp 0x4146db
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x4146db
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.00415174
add esp, 8
test eax, eax
je 0x414a45
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 0x414a5a
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 0x414b4c
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, edi
sbb eax, edx
jb 0x414b4c
xor eax, eax
mov ebx, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 0xc], edx
jmp 0x414bb3
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4146db
cmp dword [esp + 0x4c], 0
jne 0x414ef4
test eax, eax
jne 0x414ef4
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.0041526e
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 0x414cae
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 0x414d36
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 0x414cc2
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x414b60
xor eax, eax
jmp 0x414b64
lea eax, [esp + 0x38]
mov edi, 0xfffffffe
cmp edi, ebx
mov edi, 0
sbb edi, dword [esp]
mov edx, 0
jb 0x414b81
mov edi, 0
jmp 0x414b85
lea edi, [esp + 0x48]
mov ebx, dword [esp + 0x24]
jae 0x414b8f
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ecx
push eax
push edi
call fcn.0041520a
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.0041526e
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 0x414cae
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 0x414d36
mov edx, dword [esp + 8]
add edx, edi
adc ebx, 0
cmp dword [esp + 0x1c], 0
mov ecx, ebx
je 0x414cba
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 0x414d52
mov edx, edi
add edx, dword [esp + 0x50]
mov ecx, dword [esp + 4]
adc ecx, 0
jmp 0x414cc2
mov dword [edi + 0x1c], 0x13
jmp 0x4146db
mov dword [esp + 0x1c], 0
mov edi, dword [ebp + 0x38]
test edi, edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
je 0x414cf3
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 0x414d52
mov eax, dword [ebp + 0x38]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp byte [esp + 0x44], 0
je 0x414d61
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 0x414d36
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 0x414de0
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 0x4146db
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4146db
cmp dword [ebp + 0x14], 0
je 0x414de0
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.0040dd2a
add esp, 0xc
push eax
push edi
push fcn.0041534a
mov esi, dword [esp + 0x1c]
push esi
call fcn.0040dd94
add esp, 0x10
push 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00411580
add esp, 0x10
cmp eax, 1
jne 0x414ed4
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 0x414fd9
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 0x414ef0
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 0x414f4a
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 0x4146db
test ebx, ebx
je 0x414f03
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4146db
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 0x414f63
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 0x414f83
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 0x414f9e
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 0x4146db
mov eax, dword [esp + 0x44]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x1c], 0
je 0x415038
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov eax, 0
sbb eax, dword [esp + 0x3c]
jb 0x414ffa
xor eax, eax
jmp 0x414ffe
lea eax, [esp + 0x38]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x415019
mov edi, 0
jmp 0x41501d
lea edi, [esp + 0x48]
jae 0x415023
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.0041520a
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.00415389
add esp, 0x4c
test eax, eax
je 0x4146db
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 0x4146dd