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

Disassembly:
push 0xffffffffffffffff
push 0x43b160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x3c]
mov eax, dword [ebp + 0x4474]
add eax, 4
push eax
push ecx
mov ecx, ebp
call fcn.0040b880
mov eax, dword [esp + 0x3c]
mov bx, word [ebp + 0x441e]
mov edx, eax
mov ecx, eax
and edx, 0xff0000
mov si, word [ebp + 0x4420]
shr ecx, 0x10
or edx, ecx
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
mov dword [esp + 0x20], ebx
or ecx, eax
mov ax, word [ebp + 0x441c]
shr edx, 8
shl ecx, 8
or edx, ecx
mov cl, byte [ebp + 0x4423]
mov dword [esp + 0x3c], edx
mov dl, byte [ebp + 0x4422]
mov byte [esp + 0x12], dl
xor edx, edx
mov dl, byte [ebp + 0x4418]
mov byte [esp + 0x11], cl
mov cl, byte [ebp + 0x4424]
mov dword [esp + 0x24], eax
lea edi, [edx - 8]
mov byte [esp + 0x13], cl
cmp edi, 0x18
mov dword [esp + 0x1c], esi
ja case.0x40fe1a.11
xor edx, edx
mov dl, byte [edi + 0x4102bc]
jmp dword [edx*4 + 0x4102ac]
mov edi, dword [esp + 0x40]
and edi, 0xff
jmp 0x40fe37
mov edi, dword [esp + 0x40]
and edi, 0xffff
mov edx, edi
and esi, 0xffff
shr edx, cl
and eax, 0xffff
mov cl, byte [esp + 0x11]
mov dword [esp + 0x14], eax
and ebx, 0xffff
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, edi
shr edx, cl
mov cl, byte [esp + 0x12]
shr edi, cl
mov ecx, dword [esp + 0x14]
and edx, ebx
and edi, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ebx
or esi, 0x200
shl esi, 8
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
cdq
idiv ecx
shl esi, 8
and eax, 0xff
or esi, eax
jmp 0x40ff2e
mov edi, dword [esp + 0x40]
and esi, 0xffff
mov edx, edi
and eax, 0xffff
shr edx, cl
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x11]
and ebx, 0xffff
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div esi
mov edx, edi
shr edx, cl
mov cl, byte [esp + 0x12]
shr edi, cl
mov ecx, dword [esp + 0x14]
and edx, ebx
and edi, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div ebx
and esi, 0xff
xor edx, edx
or esi, 0x200
shl esi, 8
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
div ecx
shl esi, 8
and eax, 0xff
or esi, eax
jmp 0x40ff2e
mov esi, dword [esp + 0x80]
lea edi, [ebp + 0x1e4]
lea ecx, [esp + 0x30]
push edi
call fcn.00408cb0
mov eax, dword [ebp + 0x3a1c]
mov ecx, dword [ebp + 0x3a20]
push eax
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x80], 0
call fcn.00408d20
mov edx, dword [ebp + 0x3a24]
mov eax, dword [ebp + 0x3a20]
mov bl, 1
push edx
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x80], bl
call fcn.00408d60
mov eax, dword [esp + 0x80]
xor ecx, ecx
xor edx, edx
push esi
mov cx, word [eax + 6]
mov dx, word [eax + 4]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x8c], 2
call fcn.0040c900
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.00408d90
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 0
call fcn.00408d40
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0xffffffff
call fcn.00408cd0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x410295
mov ebx, dword [ebp + 0x4474]
mov ecx, ebp
add ebx, 8
imul eax, ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.0040bb90
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x1c4]
imul eax, ebx
push eax
push ecx
mov ecx, ebp
call fcn.0040b880
mov ebx, dword [ebp + 0x1c4]
push edi
lea ecx, [esp + 0x3c]
call fcn.00408cb0
mov edx, dword [ebp + 0x3a1c]
mov eax, dword [ebp + 0x3a20]
push edx
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 3
call fcn.00408d20
mov ecx, dword [ebp + 0x3a24]
mov edx, dword [ebp + 0x3a20]
push ecx
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 4
call fcn.00408d60
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x78], 5
test eax, eax
mov dword [esp + 0x2c], 0
jbe 0x410268
mov edx, dword [ebp + 0x4474]
mov al, byte [ebp + 0x4418]
mov edi, ebx
add edi, edx
cmp al, 8
mov dword [esp + 0x28], edi
je 0x410140
cmp al, 0x10
je 0x410139
cmp al, 0x20
jne 0x4101d2
mov edi, dword [ebx]
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x13]
mov esi, dword [esp + 0x1c]
mov edx, edi
and eax, 0xffff
shr edx, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
and esi, 0xffff
and eax, 0xffff
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x11]
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x18]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
xor edx, edx
div ecx
mov cl, byte [esp + 0x12]
and esi, 0xff
shr edi, cl
mov ecx, dword [esp + 0x14]
or esi, 0x200
shl esi, 8
xor edx, edx
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
shl esi, 8
div ecx
jmp 0x4101c7
xor edi, edi
mov di, word [ebx]
jmp 0x410146
xor eax, eax
mov al, byte [ebx]
mov edi, eax
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x13]
mov esi, dword [esp + 0x1c]
mov edx, edi
and eax, 0xffff
and esi, 0xffff
shr edx, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
mov cl, byte [esp + 0x11]
mov dword [esp + 0x14], eax
and edx, esi
mov eax, edx
shl eax, 8
sub eax, edx
cdq
idiv esi
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x18]
and edx, ecx
mov esi, eax
mov eax, edx
shl eax, 8
sub eax, edx
and esi, 0xff
cdq
idiv ecx
mov cl, byte [esp + 0x12]
or esi, 0x200
shr edi, cl
mov ecx, dword [esp + 0x14]
shl esi, 8
and edi, ecx
and eax, 0xff
or esi, eax
mov eax, edi
shl eax, 8
sub eax, edi
cdq
shl esi, 8
idiv ecx
mov edi, dword [esp + 0x28]
and eax, 0xff
or esi, eax
mov ax, word [edi]
mov ecx, dword [esp + 0x80]
xor edx, edx
push esi
mov dl, ah
mov dh, al
mov ax, word [edi + 2]
add dx, word [ecx]
mov word [esp + 0x68], dx
xor edx, edx
mov dl, ah
mov dh, al
mov ax, word [edi + 4]
add dx, word [ecx + 2]
xor ecx, ecx
mov cl, ah
mov word [esp + 0x6a], dx
mov ch, al
mov ax, word [edi + 6]
xor edx, edx
mov dl, ah
mov word [esp + 0x6c], cx
mov dh, al
mov word [esp + 0x6e], dx
mov edx, dword [esp + 0x6a]
mov eax, dword [esp + 0x6e]
mov ecx, dword [esp + 0x6c]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x6c]
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
mov ecx, ebp
call fcn.0040c900
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
add ebx, edi
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jb 0x410082
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 4
call fcn.00408d90
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 3
call fcn.00408d40
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.00408cd0
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4