Function at 0x453af0
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 0x453b2a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
cmp dword [eax + 8], 4
jne 0x453b2a
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x453b2e
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
cmp edi, 2
jle 0x453b51
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
lea ecx, [esp + 0xb0]
call fcn.0045adc0
mov dword [esp + 0x34], eax
xor ecx, ecx
jmp 0x453b59
mov dword [esp + 0x34], 0x4af9bc
mov dword [esp + 0x28], ecx
mov dword [esi + 4], ecx
cmp edi, 4
jle 0x453b81
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 8], 3
je 0x453b81
push 0
call fcn.0045ac80
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x453b89
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
je 0x453bc8
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.00497b30
add esp, 0x20
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x453cf8
mov eax, dword [ebp + 0x1c]
test edi, edi
je 0x4540d4
cmp ebx, eax
jge 0x4540d4
cmp dword [esp + 0x1c], 0
je 0x4540d4
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 0x453c58
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 2]
mov ebx, 0xdc00
cmp dx, bx
jb 0x453c58
mov ebx, 0xdfff
cmp dx, bx
ja 0x453c58
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 0x453b8e
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 0x4540c9
cmp word [eax + 2], 0xa
jne 0x4540c9
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4540c9
mov eax, dword [ecx]
cmp eax, 0x50435245
je 0x453ce0
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
test eax, eax
jne 0x4540c9
mov eax, dword [esp + 0x4c]
test eax, 0x400000
je 0x4540c9
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 0x453b8e
test byte [ecx + 0xc], 2
je 0x4540c9
mov eax, dword [ecx + 8]
and eax, 0x27fc7a7f
mov dword [esp + 0x4c], eax
jmp 0x453cb7
test eax, eax
js 0x454153
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 0x453d44
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
je 0x453dd8
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x28]
jle 0x453da7
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.004803a0
lea edx, [eax + eax]
add esp, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.00499a37
add esp, 8
test eax, eax
je 0x45419c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov dword [esi + 0xc], eax
test edi, edi
je 0x453dc9
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.004a3860
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 0x453de1
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 0x453e1c
test ax, ax
je 0x453e11
cmp ax, 0x24
je 0x453e0d
add edi, 2
mov word [ecx], ax
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x453df6
mov dword [esp + 0x10], ecx
mov eax, edi
sub eax, edx
sar eax, 1
add dword [esi + 4], eax
jmp 0x453e3f
test ax, ax
je 0x453e33
cmp ax, 0x24
je 0x453e33
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x453e21
mov eax, edi
sub eax, edx
sar eax, 1
add ebx, eax
mov dword [esp + 0x14], ebx
cmp word [edi], 0
je 0x454098
movzx eax, word [edi + 2]
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp ax, bx
je 0x453e99
mov esi, eax
test esi, 0xffffff80
jne 0x453e77
push 2
push esi
call fcn.0049b42c
add esp, 8
test eax, eax
je 0x453e77
and esi, 0xffdf
mov eax, esi
movzx ecx, ax
cmp ecx, 0x4c
je 0x453e89
add ecx, 0xffffffac
cmp ecx, 1
ja 0x453e99
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 0x453ecf
cmp ecx, 0x24
je 0x453f8f
cmp ecx, 0x7b
je 0x453f03
add eax, 0xffffffd0
cmp ax, 9
ja 0x453ecf
lea esi, [ecx - 0x30]
lea edi, [edi + ebx*2 + 2]
cmp esi, 0x80000000
jne 0x453fae
cmp dword [esp + 0x20], 0
je 0x453f97
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 0x453de5
lea eax, [edi + ebx*2 + 4]
push 0x7d
push eax
mov dword [esp + 0x34], eax
call fcn.0049a429
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
je 0x453ecf
mov ebx, eax
sub ebx, dword [esp + 0x2c]
sar ebx, 1
je 0x453ecf
cmp ebx, 0x21
jae 0x453f86
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.0049cb74
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.0047f660
add esp, 0x10
test eax, eax
je 0x453f75
lea edx, [esp + 0x68]
push edx
call fcn.0049993d
mov edi, dword [esp + 0x40]
add esp, 4
mov esi, eax
jmp 0x453ec3
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x68]
call fcn.00498ba0
mov esi, eax
mov edi, dword [esp + 0x3c]
jmp 0x453ec3
add edi, 2
jmp 0x453ecf
inc dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453de5
test esi, esi
js 0x454085
cmp esi, dword [esp + 0x30]
jge 0x454085
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + esi*8]
mov esi, dword [ecx + esi*8 + 4]
sub esi, eax
je 0x454085
cmp dword [esp + 0x20], 0
je 0x454081
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.004a3860
mov eax, dword [esp + 0x54]
add esp, 0xc
test ax, ax
je 0x454065
mov ecx, dword [esp + 0x10]
movzx eax, ax
xor edx, edx
sub eax, 0x4c
mov word [ecx + ebx], dx
je 0x45405e
sub eax, 8
je 0x45403b
dec eax
jne 0x454065
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 0x453de5
mov eax, ecx
call fcn.0041a170
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 0x453de5
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 0x453de5
add dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453de5
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x453d40
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 0x453b8e
cmp dword [esp + 0x24], 0
je 0x454137
sub eax, ebx
mov ebx, eax
je 0x454126
mov edi, dword [esi + 4]
add edi, ebx
cmp edi, dword [esp + 0x28]
jl 0x454108
mov eax, dword [esi + 0xc]
lea edx, [edi + edi + 2]
push edx
push eax
call fcn.00499a37
add esp, 8
test eax, eax
je 0x45419c
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.004a3860
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 [0x4d9ea8]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9cc
push ecx
call fcn.00482b90
jmp 0x4541fe
mov edx, dword [0x4d5b14]
test byte [edx + 0x100], 1
je 0x45418e
mov ecx, dword [esp + 0x30]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00499215
mov ebx, dword [0x4dacf4]
add esp, 0xc
push 0x4af9bc
push str.RegExReplace
push eax
call fcn.00439d00
jmp 0x4541fe
mov edx, dword [0x4d9ea8]
push edx
call fcn.00404070
jmp 0x4541fe
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x4541bd
mov ecx, dword [0x4d9ea8]
push ecx
mov eax, 0xfffffffa
call fcn.00404070
jmp 0x4541e7
push 0xa
lea edx, [esp + 0x54]
push edx
push 0xfffffffffffffffa
call fcn.00499215
mov ebx, dword [0x4dacf4]
add esp, 0xc
push 0x4af9bc
push str.RegExReplace
push eax
call fcn.00439d00
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4541fe
push eax
call fcn.004999fd
add esp, 4
mov dword [esi + 0xc], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x454272
cmp byte [esi + 0x17], 0
jne 0x45420f
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x454225
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 0x45424d
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 [0x4d9804], 0
je 0x45425a
test al, 0x10
jne 0x454267
cmp dword [0x4d9808], 0
je 0x454272
test al, 0x20
je 0x454272
test al, 8
je 0x454272
mov eax, esi
call fcn.004011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret