Function at 0x4539b0
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 0x4539ea
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
cmp dword [eax + 8], 4
jne 0x4539ea
mov eax, dword [eax]
mov dword [esp + 0x38], eax
jmp 0x4539ee
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
cmp edi, 2
jle 0x453a11
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
lea ecx, [esp + 0xb0]
call fcn.0045ac80
mov dword [esp + 0x34], eax
xor ecx, ecx
jmp 0x453a19
mov dword [esp + 0x34], 0x4b0cf8
mov dword [esp + 0x28], ecx
mov dword [esi + 4], ecx
cmp edi, 4
jle 0x453a41
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 8], 3
je 0x453a41
push 0
call fcn.0045ab40
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x453a49
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0x18]
xor edi, edi
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
je 0x453a88
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.004981b0
add esp, 0x20
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x453bb8
mov eax, dword [ebp + 0x1c]
test edi, edi
je 0x453f94
cmp ebx, eax
jge 0x453f94
cmp dword [esp + 0x1c], 0
je 0x453f94
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 0x453b18
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 2]
mov ebx, 0xdc00
cmp dx, bx
jb 0x453b18
mov ebx, 0xdfff
cmp dx, bx
ja 0x453b18
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 0x453a4e
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 0x453f89
cmp word [eax + 2], 0xa
jne 0x453f89
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x453f89
mov eax, dword [ecx]
cmp eax, 0x50435245
je 0x453ba0
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
test eax, eax
jne 0x453f89
mov eax, dword [esp + 0x4c]
test eax, 0x400000
je 0x453f89
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 0x453a4e
test byte [ecx + 0xc], 2
je 0x453f89
mov eax, dword [ecx + 8]
and eax, 0x27fc7a7f
mov dword [esp + 0x4c], eax
jmp 0x453b77
test eax, eax
js 0x454013
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 0x453c04
mov edi, dword [esp + 0x40]
cmp dword [esp + 0x20], 0
je 0x453c98
lea eax, [ebx + 3]
cmp eax, dword [esp + 0x28]
jle 0x453c67
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.00480a40
lea edx, [eax + eax]
add esp, 0x14
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
push edx
push eax
call fcn.0049a0b7
add esp, 8
test eax, eax
je 0x45405c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov dword [esi + 0xc], eax
test edi, edi
je 0x453c89
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.004a3af0
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 0x453ca1
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 0x453cdc
test ax, ax
je 0x453cd1
cmp ax, 0x24
je 0x453ccd
add edi, 2
mov word [ecx], ax
movzx eax, word [edi]
add ecx, 2
test ax, ax
jne 0x453cb6
mov dword [esp + 0x10], ecx
mov eax, edi
sub eax, edx
sar eax, 1
add dword [esi + 4], eax
jmp 0x453cff
test ax, ax
je 0x453cf3
cmp ax, 0x24
je 0x453cf3
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x453ce1
mov eax, edi
sub eax, edx
sar eax, 1
add ebx, eax
mov dword [esp + 0x14], ebx
cmp word [edi], 0
je 0x453f58
movzx eax, word [edi + 2]
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp ax, bx
je 0x453d59
mov esi, eax
test esi, 0xffffff80
jne 0x453d37
push 2
push esi
call fcn.0049b7fc
add esp, 8
test eax, eax
je 0x453d37
and esi, 0xffdf
mov eax, esi
movzx ecx, ax
cmp ecx, 0x4c
je 0x453d49
add ecx, 0xffffffac
cmp ecx, 1
ja 0x453d59
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 0x453d8f
cmp ecx, 0x24
je 0x453e4f
cmp ecx, 0x7b
je 0x453dc3
add eax, 0xffffffd0
cmp ax, 9
ja 0x453d8f
lea esi, [ecx - 0x30]
lea edi, [edi + ebx*2 + 2]
cmp esi, 0x80000000
jne 0x453e6e
cmp dword [esp + 0x20], 0
je 0x453e57
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 0x453ca5
lea eax, [edi + ebx*2 + 4]
push 0x7d
push eax
mov dword [esp + 0x34], eax
call fcn.0049a7fe
add esp, 8
mov dword [esp + 0x3c], eax
test eax, eax
je 0x453d8f
mov ebx, eax
sub ebx, dword [esp + 0x2c]
sar ebx, 1
je 0x453d8f
cmp ebx, 0x21
jae 0x453e46
mov edx, dword [esp + 0x2c]
push ebx
push edx
lea eax, [esp + 0x70]
push eax
call fcn.0049cf44
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.0047fd00
add esp, 0x10
test eax, eax
je 0x453e35
lea edx, [esp + 0x68]
push edx
call fcn.00499fbd
mov edi, dword [esp + 0x40]
add esp, 4
mov esi, eax
jmp 0x453d83
mov edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x68]
call fcn.00499220
mov esi, eax
mov edi, dword [esp + 0x3c]
jmp 0x453d83
add edi, 2
jmp 0x453d8f
inc dword [esp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453ca5
test esi, esi
js 0x453f45
cmp esi, dword [esp + 0x30]
jge 0x453f45
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + esi*8]
mov esi, dword [ecx + esi*8 + 4]
sub esi, eax
je 0x453f45
cmp dword [esp + 0x20], 0
je 0x453f41
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.004a3af0
mov eax, dword [esp + 0x54]
add esp, 0xc
test ax, ax
je 0x453f25
mov ecx, dword [esp + 0x10]
movzx eax, ax
xor edx, edx
sub eax, 0x4c
mov word [ecx + ebx], dx
je 0x453f1e
sub eax, 8
je 0x453efb
dec eax
jne 0x453f25
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 0x453ca5
mov eax, ecx
call fcn.0041a020
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 0x453ca5
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 0x453ca5
add dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add edi, 2
jmp 0x453ca5
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 2
jl 0x453c00
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 0x453a4e
cmp dword [esp + 0x24], 0
je 0x453ff7
sub eax, ebx
mov ebx, eax
je 0x453fe6
mov edi, dword [esi + 4]
add edi, ebx
cmp edi, dword [esp + 0x28]
jl 0x453fc8
mov eax, dword [esi + 0xc]
lea edx, [edi + edi + 2]
push edx
push eax
call fcn.0049a0b7
add esp, 8
test eax, eax
je 0x45405c
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.004a3af0
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 [0x4d9f10]
push 1
push 0
push 0xffffffffffffffff
push 0x4af9a8
push ecx
call fcn.00483210
jmp 0x4540be
mov edx, dword [0x4d5b14]
test byte [edx + 0x100], 1
je 0x45404e
mov ecx, dword [esp + 0x30]
push 0xa
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.00499895
mov ebx, dword [0x4dad5c]
add esp, 0xc
push 0x4b0cf8
push str.RegExReplace
push eax
call fcn.00439bc0
jmp 0x4540be
mov edx, dword [0x4d9f10]
push edx
call fcn.00404090
jmp 0x4540be
mov eax, dword [0x4d5b14]
test byte [eax + 0x100], 1
jne 0x45407d
mov ecx, dword [0x4d9f10]
push ecx
mov eax, 0xfffffffa
call fcn.00404090
jmp 0x4540a7
push 0xa
lea edx, [esp + 0x54]
push edx
push 0xfffffffffffffffa
call fcn.00499895
mov ebx, dword [0x4dad5c]
add esp, 0xc
push 0x4b0cf8
push str.RegExReplace
push eax
call fcn.00439bc0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4540be
push eax
call fcn.0049a07d
add esp, 4
mov dword [esi + 0xc], 0
mov esi, dword [esp + 0x38]
test esi, esi
je 0x454132
cmp byte [esi + 0x17], 0
jne 0x4540cf
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x4540e5
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 0x45410d
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 [0x4d986c], 0
je 0x45411a
test al, 0x10
jne 0x454127
cmp dword [0x4d9870], 0
je 0x454132
test al, 0x20
je 0x454132
test al, 8
je 0x454132
mov eax, esi
call fcn.004011c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret