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

Disassembly:
sub esp, 0xdc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esp + 0x13], 0xff
lea ecx, [esi + 0x72b9c]
call fcn.004a6fd0
cmp eax, 1
je 0x45a5ce
or eax, 0xffffffff
mov di, word [esi + 0x1e4]
mov bp, word [esi + 0x1e6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x6f87c]
mov dword [esp + 0x1c], eax
lea edx, [esi + 0x72600]
mov word [esp + 0x20], ax
xor ebx, ebx
mov byte [esp + 0x22], al
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
cmp dword [eax], 0
je 0x459bb6
mov ecx, dword [esp + 0x24]
call fcn.004a6fd0
cmp eax, 1
jne 0x459bb6
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movsx eax, byte [edx + 0x1a]
mov byte [esp + eax + 0x14], bl
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
inc ebx
add edx, 0xc
add ecx, 4
cmp ebx, 0x32
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
jl 0x459b91
mov ax, word [esi + 0x72fdc]
cmp ax, 1
jl 0x459feb
cmp ax, 3
jg 0x459feb
mov al, byte [esp + 0x20]
mov bx, word [esp + 0xf4]
cmp al, 0xff
je 0x459c48
movsx ecx, al
movsx edx, bx
mov eax, dword [esi + ecx*4 + 0x6f87c]
push edx
movsx edx, word [esp + 0xf4]
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
push eax
movsx eax, bp
add eax, 0x89
push eax
movsx edx, di
movsx eax, cx
add edx, 0x29
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459c48
mov cl, byte [esp + 0x20]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x18]
cmp al, 0xff
je 0x459c9e
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459c9e
mov cl, byte [esp + 0x18]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x17]
cmp al, 0xff
je 0x459cf4
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459cf4
mov cl, byte [esp + 0x17]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x19]
cmp al, 0xff
je 0x459d4a
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459d4a
mov cl, byte [esp + 0x19]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x16]
cmp al, 0xff
je 0x459da0
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459da0
mov cl, byte [esp + 0x16]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x21]
cmp al, 0xff
je 0x459df6
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459df6
mov cl, byte [esp + 0x21]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1b]
cmp al, 0xff
je 0x459e49
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xaa
push eax
movsx edx, di
movsx eax, cx
add edx, 0x5a
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459e49
mov cl, byte [esp + 0x1b]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1c]
cmp al, 0xff
je 0x459e9c
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xba
push eax
movsx edx, di
movsx eax, cx
add edx, 0x39
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459e9c
mov cl, byte [esp + 0x1c]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1d]
cmp al, 0xff
je 0x459eef
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xba
push eax
movsx edx, di
movsx eax, cx
add edx, 0x39
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459eef
mov cl, byte [esp + 0x1d]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1a]
cmp al, 0xff
je 0x459f40
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x78
push eax
movsx edx, di
movsx eax, cx
add edx, 0x23
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459f40
mov cl, byte [esp + 0x1a]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1e]
cmp al, 0xff
je 0x459f93
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xc1
push eax
movsx edx, di
movsx eax, cx
add edx, 0x20
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x459f93
mov cl, byte [esp + 0x1e]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x15]
cmp al, 0xff
je 0x45a44e
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x87
push eax
movsx edx, di
movsx eax, cx
add edx, 0x48
mov ecx, dword [esi + eax*4 + 0x3844c]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a44e
jmp 0x45a446
cmp ax, 4
jl 0x45a5ce
cmp ax, 6
jg 0x45a5ce
mov al, byte [esp + 0x20]
mov bx, word [esp + 0xf4]
cmp al, 0xff
je 0x45a05a
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x8f
push eax
movsx edx, di
movsx eax, cx
add edx, 0x2d
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a05a
mov cl, byte [esp + 0x20]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x19]
cmp al, 0xff
je 0x45a0b0
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a0b0
mov cl, byte [esp + 0x19]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x18]
cmp al, 0xff
je 0x45a106
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a106
mov cl, byte [esp + 0x18]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x17]
cmp al, 0xff
je 0x45a15c
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a15c
mov cl, byte [esp + 0x17]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x19]
cmp al, 0xff
je 0x45a1b2
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a1b2
mov cl, byte [esp + 0x19]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x16]
cmp al, 0xff
je 0x45a208
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a208
mov cl, byte [esp + 0x16]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x21]
cmp al, 0xff
je 0x45a25e
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x122
push eax
movsx edx, di
movsx eax, cx
add edx, 0xab
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a25e
mov cl, byte [esp + 0x21]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1b]
cmp al, 0xff
je 0x45a2b1
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xaf
push eax
movsx edx, di
movsx eax, cx
add edx, 0x54
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a2b1
mov cl, byte [esp + 0x1b]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1c]
cmp al, 0xff
je 0x45a304
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xbf
push eax
movsx edx, di
movsx eax, cx
add edx, 0x3c
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a304
mov cl, byte [esp + 0x1c]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1d]
cmp al, 0xff
je 0x45a357
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xbf
push eax
movsx edx, di
movsx eax, cx
add edx, 0x3c
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a357
mov cl, byte [esp + 0x1d]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1a]
cmp al, 0xff
je 0x45a3a8
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x78
push eax
movsx edx, di
movsx eax, cx
add edx, 0x23
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a3a8
mov cl, byte [esp + 0x1a]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x1e]
cmp al, 0xff
je 0x45a3fb
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0xc1
push eax
movsx edx, di
movsx eax, cx
add edx, 0x20
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a3fb
mov cl, byte [esp + 0x1e]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x15]
cmp al, 0xff
je 0x45a44e
movsx edx, al
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx edx, bx
mov cx, word [eax + 0x20]
mov ax, word [eax + 0x22]
push edx
movsx edx, word [esp + 0xf4]
push edx
push eax
movsx eax, bp
add eax, 0x8b
push eax
movsx edx, di
movsx eax, cx
add edx, 0x48
mov ecx, dword [esi + eax*4 + 0x384ec]
push edx
call fcn.004a2c20
test eax, eax
je 0x45a44e
mov cl, byte [esp + 0x15]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x13]
cmp al, 0xff
je 0x45a5ce
movsx edi, al
mov eax, dword [esi + edi*4 + 0x6f87c]
test eax, eax
je 0x45a5ce
mov cl, byte [eax + 0x19]
cmp cl, 7
je 0x45a5ce
cmp cl, 5
je 0x45a5ce
cmp cl, 6
je 0x45a5ce
cmp dword [eax + 0x44], 1
ja 0x45a5ce
lea ecx, [esi + 0x72b54]
call fcn.004a6fd0
cmp eax, 1
jne 0x45a4f3
lea ecx, [esi + 0x72be4]
call fcn.004a6fd0
test eax, eax
jne 0x45a4f3
cmp dword [esi + 0x21b4], 0x18
jne 0x45a4f3
mov eax, dword [esi + edi*4 + 0x6f87c]
mov edx, dword [esi + 0x21b8]
add eax, 4
push edx
push eax
push 0
push 0x18
push edi
push 0
push 0xa14
push 0xfa314dc
mov ecx, esi
call fcn.00405900
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 8
movsx eax, word [esi + 0x10]
add eax, 0x9880
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4]
call fcn.004a6fd0
cmp eax, 1
jne 0x45a5ce
lea edx, [esp + 0x6c]
lea eax, [esp + 0xac]
push edx
push eax
movsx edx, word [esi + 0x10]
lea ecx, [esp + 0x34]
mov eax, dword [esi + edx*4 + 0x6f87c]
push ecx
push eax
mov ecx, esi
call fcn.00460ea0
lea ebx, [esi + 0x730ed]
mov ecx, 0x20
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
push 0x4c11e4
push ebx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
push 1
push 0xa
push ebx
call fcn.004117a0
xor edi, edi
mov ecx, esi
push edi
push edi
push 0x1d
push 0x45
call fcn.00446e60
movsx edx, word [esi + 0x10]
push edi
push edi
push edi
push edi
push edx
push edi
push 0xa0a
push 0xfa314dc
mov ecx, esi
call fcn.00405900
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
push eax
movsx eax, word [esi + 0x10]
add eax, 0x9880
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*4]
call fcn.004a6fb0
movsx edx, word [esi + 0x10]
mov eax, dword [esi + edx*4 + 0x6f87c]
movsx ecx, byte [eax + 0x1a]
mov word [esi + ecx*2 + 0x72fb8], 0xffff
mov byte [esi + 0xf], 0
mov word [esi + 0x10], di
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 8