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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0xa0]
mov esi, dword [ecx + 0x48]
mov edi, dword [esi + 4]
mov dword [esp + 0x50], edi
test eax, eax
je 0x41394e
cmp dword [esi + 0x34], 0
jne 0x41394e
mov dword [ecx + 0x1c], 3
jmp 0x413fa5
mov dword [esp + 0x4c], edx
mov dword [esp], esi
movzx edx, word [esp + 0x70]
movzx ebp, word [esp + 0x68]
movzx edx, dx
movzx ebx, word [esp + 0x78]
mov dword [esp + 0x40], edx
mov esi, ebp
mov dword [esp + 0x44], ebp
lea esi, [edx + ebp]
add esi, ebx
mov ebp, dword [esp + 0xac]
xor edx, edx
add esi, ebp
setb dl
add esi, edi
adc edx, 0
add esi, 0x2e
adc edx, 0
cmp esi, 0xffffffff
sbb edx, 0
jb 0x4139a3
mov dword [ecx + 0x1c], 0xf
jmp 0x413fa5
mov dword [esp + 0x3c], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov word [esp + 0x32], 0
mov dword [esp + 0xe], 0x2014b50
movzx edi, word [esp + 0x94]
mov ebx, dword [esp + 0x8c]
movzx edx, word [esp + 0x70]
add ecx, edx
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov edx, 0
cmp word [esp + 0x90], 0
je 0x413a3c
mov dl, 0x14
mov byte [esp + 0x14], dl
mov edx, edi
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], dh
movzx edx, word [esp + 0x90]
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], dh
mov byte [esp + 0x1b], 0
movzx edx, word [esp + 0x98]
mov byte [esp + 0x1c], dl
mov byte [esp + 0x1d], dh
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x20], dl
shr ebx, 0x18
neg ebp
mov edx, 0
sbb edx, edx
mov byte [esp + 0x21], bl
or edx, dword [esp + 0x84]
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x24], bl
shr edx, 0x18
neg esi
mov ebx, 0
sbb ebx, ebx
mov byte [esp + 0x25], dl
or ebx, dword [esp + 0x7c]
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x28], dl
shr ebx, 0x18
mov byte [esp + 0x29], bl
movzx edx, word [esp + 0x68]
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], dh
mov edx, dword [esp + 0x48]
mov byte [esp + 0x2c], dl
mov byte [esp + 0x2d], dh
movzx edx, word [esp + 0x78]
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], dh
mov ebx, dword [esp + 0xa4]
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bh
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x36], dl
shr ebx, 0x18
neg eax
sbb ecx, ecx
mov byte [esp + 0x37], bl
or ecx, dword [esp + 0x9c]
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x3a], al
shr ecx, 0x18
mov byte [esp + 0x3b], cl
mov ebp, dword [esp + 8]
lea esi, [ebp + 0x2e]
mov edx, dword [esp]
mov eax, dword [edx + 8]
cmp eax, esi
jae 0x413ba5
mov edi, 1
test eax, eax
je 0x413b78
mov edi, eax
jmp 0x413b78
mov eax, edi
and eax, 2
mov ecx, edi
or edi, 2
imul edi, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add edi, ecx
cmp edi, esi
jb 0x413b60
push edi
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], edi
mov ebp, dword [esp + 8]
jmp 0x413ba7
mov eax, dword [edx]
mov dword [edx + 4], esi
mov ecx, dword [edx + 0xc]
mov esi, ebp
not esi
and esi, ecx
mov edx, ecx
not edx
mov edi, ebp
and edi, edx
imul edi, esi
mov ebx, ecx
and ebx, ebp
mov esi, ecx
or esi, ebp
imul esi, ebx
add esi, eax
add esi, edi
mov eax, ecx
and eax, 0xffffffd1
and edx, 0x2e
imul edx, eax
mov eax, ecx
and eax, 0x2e
or ecx, 0x2e
imul ecx, eax
add ecx, edx
lea eax, [esp + 0xe]
push ecx
push eax
push esi
call fcn.0041d6d0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 4]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x44]
lea edi, [esi + ecx]
cmp eax, edi
jae 0x413c61
mov ebp, 1
test eax, eax
je 0x413c38
mov ebp, eax
jmp 0x413c38
mov eax, ebp
and eax, 2
mov ecx, ebp
or ebp, 2
imul ebp, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x413c20
push ebp
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebp
jmp 0x413c63
mov ebp, eax
mov dword [edx + 4], edi
cmp word [esp + 0x68], 0
je 0x413cc4
mov eax, dword [edx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
mov edx, dword [esp]
add esi, dword [edx]
mov edi, dword [esp + 0x44]
mov edx, edi
not edx
and edx, eax
and ecx, edi
imul ecx, edx
mov edx, eax
and edx, edi
or eax, edi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x50]
push esi
call fcn.0041d6d0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov edi, dword [edx + 4]
mov ebp, dword [edx + 8]
mov eax, dword [esp + 0x40]
lea esi, [edi + eax]
cmp ebp, esi
jae 0x413d21
mov ebx, 1
test ebp, ebp
je 0x413cf8
mov ebx, ebp
jmp 0x413cf8
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x413ce0
push ebx
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebx
jmp 0x413d23
mov ebx, ebp
mov ebp, dword [esp + 0xac]
movzx eax, word [esp + 0x70]
mov dword [edx + 4], esi
test ax, ax
je 0x413d8d
mov eax, dword [edx + 0xc]
mov edx, edi
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
mov edx, dword [esp]
add edi, dword [edx]
mov esi, dword [esp + 0x40]
mov edx, esi
not edx
and edx, eax
and ecx, esi
imul ecx, edx
mov edx, eax
and edx, esi
or eax, esi
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x70]
push edi
call fcn.0041d6d0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 4]
mov ebx, dword [edx + 8]
lea edi, [esi + ebp]
cmp ebx, edi
jae 0x413df1
mov ebp, 1
test ebx, ebx
je 0x413dc8
mov ebp, ebx
jmp 0x413dc8
mov eax, ebp
and eax, 2
mov ecx, ebp
or ebp, 2
imul ebp, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebp, ecx
cmp ebp, edi
jb 0x413db0
push ebp
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebp
jmp 0x413df3
mov ebp, ebx
mov dword [edx + 4], edi
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x413e56
mov eax, dword [edx + 0xc]
mov edx, esi
not edx
and edx, eax
mov ecx, eax
not ecx
mov edi, esi
and edi, ecx
imul edi, edx
mov edx, eax
and edx, esi
or esi, eax
imul esi, edx
add esi, edi
mov edx, dword [esp]
add esi, dword [edx]
mov edx, ebx
not edx
and edx, eax
and ecx, ebx
imul ecx, edx
mov edx, eax
and edx, ebx
or eax, ebx
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0xac]
push esi
call fcn.0041d6d0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov edi, dword [edx + 4]
mov ebp, dword [edx + 8]
mov ebx, dword [esp + 0x3c]
lea esi, [edi + ebx]
cmp ebp, esi
jae 0x413eb3
mov ebx, 1
test ebp, ebp
je 0x413e88
mov ebx, ebp
jmp 0x413e88
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, esi
jb 0x413e70
push ebx
push dword [edx + 0xc]
push dword [edx]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx], eax
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edx + 4], esi
cmp word [esp + 0x78], 0
je 0x413f0a
mov eax, dword [edx + 0xc]
mov edx, edi
not edx
and edx, eax
mov ecx, eax
not ecx
mov esi, edi
and esi, ecx
imul esi, edx
mov edx, eax
and edx, edi
or edi, eax
imul edi, edx
add edi, esi
mov edx, dword [esp]
add edi, dword [edx]
mov edx, ebx
not edx
and edx, eax
and ecx, ebx
imul ecx, edx
mov edx, eax
and edx, ebx
or eax, ebx
imul eax, edx
add eax, ecx
push eax
push dword [esp + 0x78]
push edi
call fcn.0041d6d0
mov edx, dword [esp + 0xc]
add esp, 0xc
mov esi, dword [edx + 0x14]
mov eax, dword [edx + 0x18]
lea edi, [esi + 1]
cmp eax, edi
jae 0x413faf
mov ebx, 1
test eax, eax
je 0x413f48
mov ebx, eax
jmp 0x413f48
mov eax, ebx
and eax, 2
mov ecx, ebx
or ebx, 2
imul ebx, eax
xor eax, 2
and ecx, 0xfffffffd
imul ecx, eax
add ebx, ecx
cmp ebx, edi
jb 0x413f30
push ebx
push dword [edx + 0x1c]
push dword [edx + 0x10]
mov eax, dword [esp + 0x10]
push dword [eax + 0x34]
call dword [eax + 0x30]
add esp, 0x10
test eax, eax
je 0x413f6f
mov edx, dword [esp]
mov dword [edx + 0x10], eax
mov dword [edx + 0x18], ebx
jmp 0x413fb2
mov ebx, dword [esp + 8]
mov eax, dword [esp]
cmp dword [eax + 8], ebx
mov edi, dword [esp + 4]
jae 0x413f9b
push ebx
push dword [eax + 0xc]
push dword [eax]
push dword [edi + 0x34]
mov esi, eax
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x413f9e
mov dword [esi], eax
mov dword [esi + 8], ebx
mov eax, esi
mov dword [eax + 4], ebx
mov dword [edi + 0x1c], 0x10
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [edx + 0x10]
mov dword [edx + 0x14], edi
mov ecx, dword [edx + 0x1c]
mov edi, esi
not edi
and edi, ecx
mov edx, ecx
not edx
mov ebx, esi
and ebx, edx
imul ebx, edi
mov edi, ecx
and edi, esi
or esi, ecx
imul esi, edi
add esi, eax
add esi, ebx
and edx, 1
neg edx
and edx, ecx
and edx, 0xfffffffe
mov eax, ecx
or eax, 1
and ecx, 1
neg ecx
and ecx, eax
add ecx, edx
lea eax, [esp + 0x50]
push ecx
push eax
push esi
call fcn.0041d6d0
add esp, 0xc
mov eax, 1
jmp 0x413fa7