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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi], eax
cmp edi, 3
jle 0x453afa
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
cmp dword [eax + 8], 4
jne 0x453afa
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x453afe
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
cmp edi, 2
jle 0x453b21
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
lea ecx, [esp + 0xb0]
call fcn.0045ad90
mov dword [esp + 0x34], eax
xor ecx, ecx
jmp 0x453b29
mov dword [esp + 0x34], 0x4b0cf8
mov dword [esp + 0x28], ecx
mov dword [esi + 4], ecx
cmp edi, 4
jle 0x453b51
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 8], 3
je 0x453b51
push 0
call fcn.0045ac50
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x453b59
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
je 0x453b98
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push edi
push ebx
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
call fcn.004982c0
add esp, 0x20
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x453cc8
mov eax, dword [ebp + 0x1c]
test edi, edi
je 0x4540a4
cmp ebx, eax
jge 0x4540a4
cmp dword [esp + 0x1c], 0
je 0x4540a4
mov edx, dword [esp + 0x18]
movzx eax, word [edx]
mov ecx, eax
lea edx, [ecx + 0x2800]
mov ebx, 0x3ff
xor edi, edi
cmp dx, bx
ja 0x453c28
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 2]
mov ebx, 0xdc00
cmp dx, bx
jb 0x453c28
mov ebx, 0xdfff
cmp dx, bx
ja 0x453c28
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0x18]
mov word [edx + eax*2], cx
mov ecx, 1
add dword [esi + 4], ecx
mov bx, word [ebx + 2]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov word [edx + eax*2], bx
mov ebx, dword [ebp + 0x20]
add dword [esi + 4], ecx
mov eax, dword [ebp + 0x18]
add ebx, 2
mov dword [ebp + 0x20], ebx
lea ecx, [eax + ebx*2]
jmp 0x453b5e
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 0x20]
mov word [edx + ecx*2], ax
inc dword [esi + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
inc ebx
cmp word [eax], 0xd
mov dword [ebp + 0x20], ebx
jne 0x454099
cmp word [eax + 2], 0xa
jne 0x454099
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x454099
mov eax, dword [ecx]
cmp eax, 0x50435245
je 0x453cb0
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
test eax, eax
jne 0x454099
mov eax, dword [esp + 0x4c]
test eax, 0x400000
je 0x454099
mov eax, dword [esi + 0xc]
mov ecx, 0xa
mov word [eax + edx*2], cx
inc dword [esi + 4]
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [ebp + 0x20], ebx
lea ecx, [eax + ebx*2]
jmp 0x453b5e
test byte [ecx + 0xc], 2
je 0x454099
mov eax, dword [ecx + 8]
and eax, 0x27fc7a7f
mov dword [esp + 0x4c], eax
jmp 0x453c87
test eax, eax
js 0x454123
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, 1
add dword [esp + 0x24], eax
sub dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov edi, dword [eax]
mov edx, dword [eax + 4]
add edi, edi
sub edi, dword [esp + 0x18]
mov dword [esp + 0x44], edx
add edi, dword [ebp + 0x18]
mov dword [esp + 0x20], 0
sar edi, 1
mov dword [esp + 0x40], edi
jmp 0x453d14
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
je 0x453da8
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x28]
jle 0x453d77
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + 0x1c]
push edx
lea ecx, [ebx + 2]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, ebx
sub eax, edx
push ecx
mov ecx, dword [esp + 0x34]
cdq
idiv ecx
push ecx
mov edi, eax
call fcn.00480b50
lea edx, [eax + eax]
add esp, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.0049a1c7
add esp, 8
test eax, eax
je 0x45416c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov dword [esi + 0xc], eax
test edi, edi
je 0x453d99
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [edi + edi]
push ecx
mov ecx, dword [esi + 0xc]
push edx
lea edx, [ecx + eax*2]
push edx
call fcn.004a3c00
add esp, 0xc
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x10], ecx
jmp 0x453db1
mov ebx, dword [esi + 4]
add ebx, edi
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
movzx eax, word [edi]
mov edx, edi
je 0x453dec
test ax, ax
je 0x453de1
cmp ax, 0x24
je 0x453ddd
add edi, 2
mov word [ecx], ax
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x453dc6
mov dword [esp + 0x10], ecx
mov eax, edi
sub eax, edx
sar eax, 1
add dword [esi + 4], eax
jmp 0x453e0f
test ax, ax
je 0x453e03
cmp ax, 0x24
je 0x453e03
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x453df1
mov eax, edi
sub eax, edx
sar eax, 1
add ebx, eax
mov dword [esp + 0x14], ebx
cmp word [edi], 0
je 0x454068
movzx eax, word [edi + 2]
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp ax, bx
je 0x453e69
mov esi, eax
test esi, 0xffffff80
jne 0x453e47
push 2
push esi
call fcn.0049b90c
add esp, 8
test eax, eax
je 0x453e47
and esi, 0xffdf
mov eax, esi
movzx ecx, ax
cmp ecx, 0x4c
je 0x453e59
add ecx, 0xffffffac
cmp ecx, 1
ja 0x453e69
movzx ecx, ax
movzx eax, word [edi + 4]
mov dword [esp + 0x48], ecx
mov ebx, 1
movzx ecx, ax
mov esi, connect
test ecx, ecx
je 0x453e9f
cmp ecx, 0x24
je 0x453f5f
cmp ecx, 0x7b
je 0x453ed3
add eax, 0xffffffd0
cmp ax, 9
ja 0x453e9f
lea esi, [ecx - 0x30]
lea edi, [edi + ebx*2 + 2]
cmp esi, 0x80000000
jne 0x453f7e
cmp dword [esp + 0x20], 0
je 0x453f67
mov cx, word [edi]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov word [eax], cx
add eax, 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
inc dword [eax + 4]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453db5
lea eax, [edi + ebx*2 + 4]
push 0x7d
push eax
mov dword [esp + 0x34], eax
call fcn.0049a90e
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
je 0x453e9f
mov ebx, eax
sub ebx, dword [esp + 0x2c]
sar ebx, 1
je 0x453e9f
cmp ebx, 0x21
jae 0x453f56
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.0049d054
add esp, 0xc
xor ecx, ecx
push ecx
push 1
push ecx
push 1
lea eax, [esp + 0x78]
mov word [esp + ebx*2 + 0x78], cx
call fcn.0047fe10
add esp, 0x10
test eax, eax
je 0x453f45
lea edx, [esp + 0x68]
push edx
call fcn.0049a0cd
mov edi, dword [esp + 0x40]
add esp, 4
mov esi, eax
jmp 0x453e93
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x68]
call fcn.00499330
mov esi, eax
mov edi, dword [esp + 0x3c]
jmp 0x453e93
add edi, 2
jmp 0x453e9f
inc dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453db5
test esi, esi
js 0x454055
cmp esi, dword [esp + 0x30]
jge 0x454055
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + esi*8]
mov esi, dword [ecx + esi*8 + 4]
sub esi, eax
je 0x454055
cmp dword [esp + 0x20], 0
je 0x454051
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
lea ebx, [esi + esi]
push ebx
lea eax, [edx + eax*2]
push eax
push ecx
call fcn.004a3c00
mov eax, dword [esp + 0x54]
add esp, 0xc
test ax, ax
je 0x454035
mov ecx, dword [esp + 0x10]
movzx eax, ax
xor edx, edx
sub eax, 0x4c
mov word [ecx + ebx], dx
je 0x45402e
sub eax, 8
je 0x45400b
dec eax
jne 0x454035
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453db5
mov eax, ecx
call fcn.0041a130
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453db5
push ecx
call dword [sym.imp.USER32.dll_CharLowerW]
add dword [esp + 0x10], ebx
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
mov esi, eax
jmp 0x453db5
add dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453db5
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x453d10
mov eax, dword [ebp + 0x24]
mov edi, dword [eax]
sub edi, dword [eax + 4]
mov ebx, dword [esp + 0x44]
neg edi
sbb edi, edi
and edi, 0xfffffbf0
add edi, 0x410
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x18]
lea ecx, [eax + ebx*2]
jmp 0x453b5e
cmp dword [esp + 0x24], 0
je 0x454107
sub eax, ebx
mov ebx, eax
je 0x4540f6
mov edi, dword [esi + 4]
add edi, ebx
cmp edi, dword [esp + 0x28]
jl 0x4540d8
mov eax, dword [esi + 0xc]
lea edx, [edi + edi + 2]
push edx
push eax
call fcn.0049a1c7
add esp, 8
test eax, eax
je 0x45416c
mov dword [esi + 0xc], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx]
push ecx
mov ecx, dword [esi + 0xc]
push edx
lea edx, [ecx + eax*2]
push edx
call fcn.004a3c00
add esp, 0xc
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esi + 0xc]
mov dword [esi], eax
mov ecx, dword [0x4d9f14]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push ecx
call fcn.00483320
jmp 0x4541ce
mov edx, dword [0x4d5b14]
test byte [edx + 0x100], 1
je 0x45415e
mov ecx, dword [esp + 0x30]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.004999a5
mov ebx, dword [0x4dad5c]
add esp, 0xc
push 0x4b0cf8
push 0x4b8ab4
push eax
call fcn.00439cd0
jmp 0x4541ce
mov edx, dword [0x4d9f14]
push edx
call fcn.004040a0
jmp 0x4541ce
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x45418d
mov ecx, dword [0x4d9f14]
push ecx
mov eax, 0xfffffffa
call fcn.004040a0
jmp 0x4541b7
push 0xa
lea edx, [esp + 0x54]
push edx
push 0xfffffffffffffffa
call fcn.004999a5
mov ebx, dword [0x4dad5c]
add esp, 0xc
push 0x4b0cf8
push 0x4b8ab4
push eax
call fcn.00439cd0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4541ce
push eax
call fcn.0049a18d
add esp, 4
mov dword [esi + 0xc], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x454242
cmp byte [esi + 0x17], 0
jne 0x4541df
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x4541f5
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x45421d
mov eax, esi
call fcn.004011c0
and byte [esi + 0x15], 0x8f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4d9870], 0
je 0x45422a
test al, 0x10
jne 0x454237
cmp dword [0x4d9874], 0
je 0x454242
test al, 0x20
je 0x454242
test al, 8
je 0x454242
mov eax, esi
call fcn.004011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret