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

Disassembly:
push 0xffffffffffffffff
push 0x4924fc
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x24], eax
call fcn.00409c40
xor ebx, ebx
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0xbc], ebx
call fcn.00402bb0
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 1
call fcn.00405420
mov edx, dword [esp + 0x28]
push ebx
push ebx
push 0x49abb8
lea ecx, [esp + 0x84]
push ecx
push edx
call fcn.00436280
mov esi, dword [esp + 0x9c]
mov ecx, esi
sub ecx, dword [esp + 0x98]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x14
cmp eax, 4
je 0x40ae19
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x78]
call fcn.0040a630
xor eax, eax
jmp 0x40b3c6
xor edi, edi
mov dword [esp + 0x5c], edi
jmp 0x40ae28
mov esi, dword [esp + 0x88]
sub esi, dword [esp + 0x84]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x40ae4b
call fcn.00467a4e
mov eax, dword [esp + 0x84]
lea edx, [edi*8]
sub edx, edi
cmp dword [eax + edx*4 + 0x18], 8
lea eax, [eax + edx*4]
jb 0x40ae6a
mov eax, dword [eax + 4]
jmp 0x40ae6d
add eax, 4
push eax
lea ecx, [esp + 0x24]
call fcn.00402bb0
lea ecx, [esp + 0x20]
mov byte [esp + 0xb8], 2
call fcn.00405480
lea ecx, [esp + 0x20]
call fcn.00405d70
push 4
call fcn.0044409c
add esp, 4
cmp eax, ebx
je 0x40aea7
lea ecx, [esp + 0x40]
mov dword [eax], ecx
jmp 0x40aea9
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
push 4
mov byte [esp + 0xbc], 4
call fcn.0044409c
add esp, 4
cmp eax, ebx
je 0x40aed7
lea edx, [esp + 0x60]
mov dword [eax], edx
jmp 0x40aed9
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x60]
push eax
push 1
push 0x49abb0
lea ecx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0xcc], 6
call fcn.00436280
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
add esp, 0x14
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x1c], esi
jle 0x40b259
cmp ebp, eax
jb 0x40af43
call fcn.00467a4e
mov ecx, dword [esp + 0x4c]
lea eax, [ebp*8]
sub eax, ebp
cmp dword [ecx + eax*4 + 0x18], 8
lea eax, [ecx + eax*4]
jb 0x40af5f
mov eax, dword [eax + 4]
jmp 0x40af62
add eax, 4
push eax
lea ecx, [esp + 0x1c]
call fcn.00402bb0
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 7
call fcn.00405480
lea ecx, [esp + 0x18]
call fcn.00405d70
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
xor edi, edi
cmp eax, ebx
jl 0x40b3f0
movzx ecx, word [esi]
movzx edx, cx
cmp dx, 0x30
jb 0x40afc4
cmp eax, ebx
jl 0x40b3f0
movzx ecx, cx
cmp cx, 0x39
ja 0x40afc4
push esi
call fcn.00467fd3
add esp, 4
mov edi, eax
jmp 0x40b154
cmp eax, ebx
jle 0x40b154
push 0x2e
push esi
call fcn.00467cfa
add esp, 8
cmp eax, ebx
je 0x40b154
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
cmp esi, ebx
jle 0x40b154
push esi
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x20]
call fcn.004055d0
inc esi
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 8
call fcn.00405520
lea ecx, [esp + 0x58]
mov byte [esp + 0xb8], 9
call fcn.00405d70
lea ecx, [esp + 0x14]
call fcn.00405480
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00407d10
lea edx, [esp + 0x14]
push str.left
push edx
call fcn.004062c0
add esp, 8
test al, al
je 0x40b072
mov edi, dword [esp + 0x30]
jmp 0x40b108
lea eax, [esp + 0x14]
push str.right
push eax
call fcn.004062c0
add esp, 8
test al, al
je 0x40b08e
mov edi, dword [esp + 0x38]
jmp 0x40b108
lea ecx, [esp + 0x14]
push 0x49ab9c
push ecx
call fcn.004062c0
add esp, 8
test al, al
je 0x40b0aa
mov edi, dword [esp + 0x34]
jmp 0x40b108
lea edx, [esp + 0x14]
push str.bottom
push edx
call fcn.004062c0
add esp, 8
test al, al
je 0x40b0c6
mov edi, dword [esp + 0x3c]
jmp 0x40b108
lea eax, [esp + 0x14]
push str.width
push eax
call fcn.004062c0
add esp, 8
test al, al
je 0x40b0e6
mov edi, dword [esp + 0x38]
sub edi, dword [esp + 0x30]
jmp 0x40b108
lea ecx, [esp + 0x14]
push str.height
push ecx
call fcn.004062c0
add esp, 8
test al, al
je 0x40b106
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x34]
jmp 0x40b108
xor edi, edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b130
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xb8], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
jne 0x40b161
mov dword [esp + 0x1c], edi
jmp 0x40b205
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x6c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea esi, [ebp - 1]
add ecx, edx
cmp esi, ecx
jb 0x40b188
call fcn.00467a4e
mov eax, dword [esp + 0x6c]
lea edx, [esi*8]
push 0xffffffffffffffff
sub edx, esi
xor ecx, ecx
lea eax, [eax + edx*4]
push ebx
mov word [esp + 0x9c], cx
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebx
call fcn.00402120
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x94]
mov eax, edx
cmp ecx, 8
jae 0x40b1e0
lea eax, [esp + 0x94]
movzx eax, word [eax]
sub eax, 0x2b
je 0x40b1f3
sub eax, 2
jne 0x40b1f7
sub dword [esp + 0x1c], edi
jmp 0x40b1f7
add dword [esp + 0x1c], edi
cmp ecx, 8
jb 0x40b205
push edx
call fcn.004440cb
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b22d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
cmp ebp, eax
jl 0x40af3c
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x5c]
cmp edi, 3
ja case.default.0x40b25e
jmp dword [edi*4 + 0x40b3fc]
mov ecx, dword [esp + 0x24]
mov dword [ecx], esi
jmp case.default.0x40b25e
mov edx, dword [esp + 0x24]
mov dword [edx + 4], esi
jmp case.default.0x40b25e
mov eax, dword [esp + 0x24]
mov dword [eax + 8], esi
jmp case.default.0x40b25e
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xc], esi
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x40b2b0
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x6c]
push ecx
push edx
push eax
call fcn.00406590
mov eax, dword [esp + 0x7c]
push eax
call fcn.004440cb
add esp, 0x14
mov ecx, dword [esp + 0x60]
push ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.004440cb
mov eax, dword [esp + 0x50]
add esp, 4
cmp eax, ebx
je 0x40b2f3
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00406590
mov eax, dword [esp + 0x5c]
push eax
call fcn.004440cb
add esp, 0x14
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.004440cb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0xb8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b334
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc edi
cmp edi, 4
mov dword [esp + 0x5c], edi
jl 0x40ae21
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b369
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x40b39f
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x84]
push edx
push ecx
push eax
call fcn.00406590
mov edx, dword [esp + 0x94]
push edx
call fcn.004440cb
add esp, 0x14
mov eax, dword [esp + 0x78]
push eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004440cb
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004677ab
add esp, 0xa8
ret 8
push 0x80070057
call fcn.004010a0
mov edi, edi
mov dl, 0x40
add byte [ebp - 78], ch
inc eax
add byte [esi - 0x4e], dh
inc eax
add byte [edi - 0x4e], bh
inc eax
add ah, cl
int3