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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
xor ebp, ebp
mov ebx, ecx
push edi
mov dword [esp + 0x20], ebx
cmp esi, ebp
jne 0x46174c
mov esi, 0x527f5c
mov eax, dword [ebx + 0x28]
lea edi, [ebx + 0x28]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46177a
cmp dx, bp
je 0x461776
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46177a
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x461754
xor eax, eax
jmp 0x46177f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x461f4f
cmp dword [ebx + 0x50], 0xffffffff
je 0x461798
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
or eax, 0xffffffff
lea ecx, [ebx + 0x2c]
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x50], eax
call fcn.00458060
cmp esi, ebp
jne 0x4617b1
xor eax, eax
jmp 0x4617c5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4617b6
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.0043a260
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x84], ebp
call fcn.00454a80
lea ecx, [esp + 0x80]
push ecx
or edi, 0xffffffff
lea ecx, [esp + 0x48]
mov dword [esp + 0x84], edi
call fcn.00454b00
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], edi
call fcn.00454b00
push 0x527f5c
lea ecx, [esp + 0x84]
call fcn.0043a930
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x54]
call fcn.004580e0
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x46188b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x54ffc8]
mov eax, dword [edx + 0xc]
mov ecx, 0x54ffc8
call eax
add eax, 0x10
mov dword [esp + 0x80], eax
cmp word [esi], bp
je 0x461d97
mov edi, edi
movzx eax, word [esi]
cmp ax, 0x7b
jne 0x461d36
cmp word [esi + 2], 0x26
jne 0x461d36
cmp word [esi + 4], 0x23
jne 0x461d36
push 0x7d
push esi
call fcn.004d9a27
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x461d24
mov ecx, dword [esp + 0x80]
cmp dword [ecx - 0xc], ebp
je 0x46199b
lea ecx, [esp + 0x5c]
call fcn.004564e0
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x60]
call fcn.0043a540
mov eax, dword [esp + 0x54]
dec eax
push eax
lea ecx, [esp + 0x54]
call fcn.004501a0
push eax
lea ecx, [esp + 0x7c]
call fcn.0043a540
mov ecx, dword [esp + 0x78]
cmp dword [ecx - 0xc], ebp
je 0x46194b
mov edx, dword [esp + 0x3c]
dec edx
push edx
lea ecx, [esp + 0x3c]
call fcn.00450150
mov eax, dword [eax]
mov dword [esp + 0x74], eax
jmp 0x461960
mov ecx, dword [esp + 0x48]
dec ecx
push ecx
lea ecx, [esp + 0x48]
call fcn.00450150
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x30]
dec eax
push eax
lea ecx, [esp + 0x30]
call fcn.004500b0
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x5c]
push edx
add ecx, 0x2c
call fcn.00458fe0
lea ecx, [esp + 0x80]
call fcn.004395a0
lea ecx, [esp + 0x5c]
call fcn.00456520
push 2
add esi, 6
push 0x517628
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461a2a
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
add esi, 4
call edx
mov edi, ebx
sub edi, esi
add eax, 0x10
sar edi, 1
push edi
mov dword [esp + 0x14], eax
lea eax, [edi + 1]
push esi
push eax
push eax
lea ecx, [esp + 0x20]
call fcn.0043a160
push eax
call fcn.00451520
push edi
lea ecx, [esp + 0x14]
call fcn.00452910
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x54]
call fcn.004580e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, ebx
jmp 0x461d8b
push 2
push 0x517620
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461a5f
cmp dword [esp + 0x54], 1
jle 0x461d20
mov ecx, dword [esp + 0x54]
dec ecx
push ecx
lea ecx, [esp + 0x54]
call fcn.00456f10
mov esi, ebx
jmp 0x461d8b
push 7
push str.acolor
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461b0c
lea ecx, [esp + 0x14]
add esi, 0xe
call fcn.00439d00
mov edi, ebx
sub edi, esi
sar edi, 1
push edi
lea eax, [edi + 1]
push esi
push eax
push eax
lea ecx, [esp + 0x24]
call fcn.0043a160
push eax
call fcn.00451520
push edi
lea ecx, [esp + 0x18]
call fcn.00452910
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
cmp ax, 0x23
jne 0x461abd
push 0x10
add ecx, 2
jmp 0x461adc
cmp ax, 0x30
jne 0x461ada
movzx eax, word [ecx + 2]
cmp ax, 0x78
je 0x461ad3
cmp ax, 0x58
jne 0x461ada
push 0x10
add ecx, 4
jmp 0x461adc
push 0xa
lea edx, [esp + 0x28]
push edx
push ecx
call fcn.004da5fe
mov dword [esp + 0x1c], eax
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00454b00
lea ecx, [esp + 0x14]
call fcn.00439d40
mov esi, ebx
jmp 0x461d8b
push 7
push str._acolor
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461b41
cmp dword [esp + 0x3c], 1
jle 0x461d20
mov ecx, dword [esp + 0x3c]
dec ecx
push ecx
lea ecx, [esp + 0x3c]
call fcn.00450100
mov esi, ebx
jmp 0x461d8b
push 5
push str.font
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461c14
lea ecx, [esp + 0x18]
add esi, 0xa
call fcn.00439d00
mov edi, ebx
sub edi, esi
sar edi, 1
push edi
lea eax, [edi + 1]
push esi
push eax
push eax
lea ecx, [esp + 0x28]
call fcn.0043a160
push eax
call fcn.00451520
push edi
lea ecx, [esp + 0x1c]
call fcn.00452910
mov edx, dword [esp + 0x18]
push edx
call fcn.004da869
dec eax
add esp, 4
cmp eax, 7
ja case.default.0x461b9e
jmp dword [eax*4 + 0x461f5c]
mov eax, dword [0x543fac]
mov ecx, dword [eax]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 4]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 8]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 0xc]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 0x10]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 0x14]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 0x18]
jmp 0x461bf2
mov eax, dword [0x543fac]
mov ecx, dword [eax + 0x1c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00454a80
lea ecx, [esp + 0x18]
call fcn.00439d40
mov esi, ebx
jmp 0x461d8b
push 5
push str._font
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461c49
cmp dword [esp + 0x30], 1
jle 0x461d20
mov eax, dword [esp + 0x30]
dec eax
push eax
lea ecx, [esp + 0x30]
call fcn.00450060
mov esi, ebx
jmp 0x461d8b
push 6
push str.color
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461cf6
lea ecx, [esp + 0x1c]
add esi, 0xc
call fcn.00439d00
mov edi, ebx
sub edi, esi
sar edi, 1
push edi
lea eax, [edi + 1]
push esi
push eax
push eax
lea ecx, [esp + 0x2c]
call fcn.0043a160
push eax
call fcn.00451520
push edi
lea ecx, [esp + 0x20]
call fcn.00452910
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx]
cmp ax, 0x23
jne 0x461ca7
push 0x10
add ecx, 2
jmp 0x461cc6
cmp ax, 0x30
jne 0x461cc4
movzx eax, word [ecx + 2]
cmp ax, 0x78
je 0x461cbd
cmp ax, 0x58
jne 0x461cc4
push 0x10
add ecx, 4
jmp 0x461cc6
push 0xa
lea edx, [esp + 0x2c]
push edx
push ecx
call fcn.004da5fe
mov dword [esp + 0x1c], eax
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
call fcn.00454b00
lea ecx, [esp + 0x1c]
call fcn.00439d40
mov esi, ebx
jmp 0x461d8b
push 6
push str._color
push esi
call fcn.004da779
add esp, 0xc
test eax, eax
jne 0x461d20
cmp dword [esp + 0x48], 1
jle 0x461d20
mov ecx, dword [esp + 0x48]
dec ecx
push ecx
lea ecx, [esp + 0x48]
call fcn.00450100
mov esi, ebx
jmp 0x461d8b
movzx edx, word [esi]
push edx
lea ecx, [esp + 0x84]
call fcn.00457300
jmp 0x461d8b
movzx ebp, ax
mov eax, dword [esp + 0x80]
mov ebx, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
lea edi, [ebx + 1]
sub edx, edi
or ecx, edx
jge 0x461d6b
push edi
lea ecx, [esp + 0x84]
call fcn.004397e0
mov eax, dword [esp + 0x80]
mov word [eax + ebx*2], bp
test edi, edi
jl 0x461e3b
cmp edi, dword [eax - 8]
jg 0x461e3b
xor ecx, ecx
mov dword [eax - 0xc], edi
mov word [eax + edi*2], cx
xor ebp, ebp
add esi, 2
cmp word [esi], bp
jne 0x4618b0
mov edx, dword [esp + 0x80]
cmp dword [edx - 0xc], 0
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
je 0x461edc
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
call edx
add eax, 0x10
mov dword [esp + 0x5c], eax
mov eax, dword [0x54ffc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x54ffc8
mov dword [esp + 0x70], 0
call edx
add eax, 0x10
mov dword [esp + 0x78], eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x60]
call fcn.0043a540
mov ecx, dword [esp + 0x54]
lea eax, [ecx - 1]
test eax, eax
jl 0x461e45
cmp eax, ecx
jge 0x461e45
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax*4]
push edx
lea ecx, [esp + 0x7c]
call fcn.0043a540
mov esi, dword [esp + 0x78]
cmp dword [esi - 0xc], 0
je 0x461e56
mov ecx, dword [esp + 0x3c]
lea eax, [ecx - 1]
test eax, eax
jl 0x461e45
cmp eax, ecx
jge 0x461e45
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x74], eax
jmp 0x461e6d
push 0x80070057
call fcn.00438530
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 1]
test eax, eax
jl 0x461e45
cmp eax, ecx
jge 0x461e45
mov ecx, dword [ebp + eax*4]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x30]
lea eax, [ecx - 1]
test eax, eax
jl 0x461e45
cmp eax, ecx
jge 0x461e45
mov edx, dword [edi + eax*4]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
add ecx, 0x2c
mov dword [esp + 0x74], edx
call fcn.00458fe0
lea ecx, [esp + 0x80]
call fcn.004395a0
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461ebc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461edc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.004540b0
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x461efc
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 0
push 0
push esi
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
call fcn.00455210
test ebx, ebx
je 0x461f35
push ebx
call fcn.004d733e
add esp, 4
test ebp, ebp
je 0x461f42
push ebp
call fcn.004d733e
add esp, 4
test edi, edi
je 0x461f4f
push edi
call fcn.004d733e
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4