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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x50
mov edi, ecx
mov dword [esp + 0x1c], edi
mov ebx, edx
mov ebp, eax
mov esi, dword [ebx*4 + 0x78cde0]
cmp byte [esp + 0x74], 1
mov ecx, 0
sete cl
lea eax, [ebx + ebx]
add eax, ebx
imul eax, ecx
add eax, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov eax, ebx
mov edx, edi
movsx ecx, byte [esp + 0x70]
call fcn.0043db59
movsx ecx, al
cmp ecx, 0xffffffff
je 0x43db34
mov ecx, esi
imul ecx, ecx
mov eax, dword [0x5b253c]
mov edi, ecx
sar edi, 2
shr edi, 0x1d
add edi, ecx
sar edi, 3
push 0xff
push edi
push dword [eax*4 + 0x7df944]
call dword [0x5b2484]
add esp, 0xc
mov ecx, dword [0x5b253c]
push dword [ecx*4 + 0x7df988]
push dword [ecx*4 + 0x7df9a8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [0x7df984], eax
mov ecx, dword [0x5b253c]
push dword [ecx*4 + 0x7df904]
push dword [ecx*4 + 0x7df9a8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [0x7df900], eax
mov edi, dword [0x5b253c]
xor ecx, ecx
mov byte [edi*4 + 0x7df9c9], cl
mov byte [edi*4 + 0x7df9ca], cl
movzx ecx, byte [ebp]
movzx ecx, byte [ecx + 0x5950a0]
inc ecx
movsx ecx, cl
push ecx
push ebp
xor ecx, ecx
push ecx
push ecx
push dword [edi*4 + 0x7df9a8]
call dword [sym.imp.GDI32.dll_TextOutA]
movzx edi, byte [ebp]
movzx ecx, byte [edi + 0x5950a0]
inc ecx
movsx edi, cl
mov ecx, dword [0x5b253c]
add ecx, ecx
lea ecx, [ecx + ecx + 0x7df9c8]
push edi
push ebp
push ecx
call fcn.0045d4b0
add esp, 0xc
mov ecx, dword [0x5b253c]
push dword [0x7df900]
push dword [ecx*4 + 0x7df9a8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x5b253c]
push dword [0x7df984]
push dword [ecx*4 + 0x7df9a8]
call dword [sym.imp.GDI32.dll_SelectObject]
xor edi, edi
mov ecx, dword [esp + 0x78]
mov dword [ecx], edi
mov ecx, dword [esp + 0x7c]
mov dword [ecx], edi
call fcn.00403760
movsx edx, al
cmp edx, 1
je 0x43da11
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
test edx, edx
je 0x43d9be
mov ebp, ecx
sar ebp, 1
shr ebp, 0x1e
add ebp, ecx
sar ebp, 2
add ebp, 4
cmp ebx, ebp
jl 0x43d995
mov ebx, ebp
mov ecx, dword [esp + 0x78]
mov dword [ecx], ebx
mov esi, dword [esp + 0x7c]
mov eax, dword [esi]
mov edx, eax
sar edx, 1
shr edx, 0x1e
add edx, eax
sar edx, 2
add edx, 4
mov ebx, dword [esp + 0x1c]
cmp ebx, edx
jl 0x43d9ba
mov ebx, edx
mov dword [esi], ebx
jmp 0x43d9e7
movzx ebp, byte [ebp]
movzx ecx, byte [ebp + 0x5950a0]
inc ecx
movsx esi, cl
neg esi
add esi, 3
mov eax, ebx
cdq
idiv esi
mov edi, dword [esp + 0x78]
mov dword [edi], eax
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
mov ebp, dword [0x5b253c]
mov edx, dword [esp + 0x78]
mov ecx, dword [edx]
mov dword [ebp*4 + 0x7df9e8], ecx
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax]
mov dword [ebp*4 + 0x7dfa08], ebx
xor eax, eax
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], 0x20
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 1
test esi, esi
jle 0x43db29
xor edi, edi
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
test esi, esi
jle 0x43db13
xor eax, eax
mov ebx, esi
sar ebx, 2
shr ebx, 0x1d
add ebx, esi
sar ebx, 3
imul ebx, edi
mov ebp, esi
sub ebp, edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0x7c]
mov edx, dword [0x5b253c]
mov ebx, dword [edx*4 + 0x7df944]
add ebx, dword [esp + 0x4c]
mov edx, eax
sar edx, 2
shr edx, 0x1d
add edx, eax
sar edx, 3
movzx ebx, byte [edx + ebx]
mov edi, eax
cdq
xor edi, edx
sub edi, edx
and edi, 7
xor edi, edx
sub edi, edx
test dword [esp + edi*4 + 0x28], ebx
jne 0x43daf0
cmp ecx, eax
jge 0x43dadd
mov ecx, eax
mov edx, dword [esp + 0x78]
mov dword [edx], eax
cmp dword [ebp], 0
jne 0x43daf0
mov edx, dword [esp + 0x48]
mov dword [ebp], edx
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
inc eax
cmp eax, esi
jl 0x43da9b
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc edi
cmp edi, esi
jl 0x43da69
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x43d97c
inc edi
cmp edi, esi
jl 0x43da69
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
jmp 0x43d97c
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
jmp 0x43d97c
xor ecx, ecx
mov edx, dword [esp + 0x78]
mov dword [edx], ecx
mov eax, dword [esp + 0x7c]
mov dword [eax], ecx
xor eax, eax
add esp, 0x50
pop ebx
pop ebp
pop esi
pop edi
ret