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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078388
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100926a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ecx, ecx
mov dword [ebx + 0x3c], ecx
mov esi, dword [0x100e86a4]
add esi, 0x2e4
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], esi
cmp dword [esi + 0x48], ecx
je 0x10058df1
mov edx, dword [esi + 0x4c]
cmp edx, dword [esi + 0x50]
lea eax, [esi + 0x4c]
je 0x10058df1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [edi + 0x20]
push edx
lea ecx, [edi + 0xac]
push ecx
push eax
call fcn.1004b7d0
test eax, eax
je 0x10058dd8
cmp dword [ebp - 0x18], 0x10
jb 0x10058db2
mov edx, dword [ebp - 0x2c]
push edx
call fcn.1005ccdb
add esp, 4
mov dword [ebx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cccc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x10058df1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1005ccdb
add esp, 4
cmp dword [esi], 0
je 0x10058eea
cmp dword [edi + 0x84], 0
je 0x10058eea
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 8]
push edx
lea eax, [edi + 0x74]
call fcn.100392d0
test eax, eax
je 0x10058eea
push 0xb
push str.GET
lea ecx, [ebx + 0x5c]
call fcn.10002780
push 0x15
lea esi, [ebx + 4]
push 0x1008537c
mov ecx, esi
call fcn.10002780
mov eax, dword [ebp - 0x68]
push 0
push eax
or eax, 0xffffffff
call fcn.1000ed10
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x48], 0
je 0x10058e83
push 2
mov eax, 0x10082f54
mov ecx, esi
call fcn.1000cd00
mov eax, dword [ebp - 0x68]
add eax, 0x38
push 0
push eax
or eax, 0xffffffff
call fcn.1000ed10
push 2
mov eax, 0x10082f48
mov ecx, esi
call fcn.1000cd00
mov edx, dword [ebp - 0x70]
cmp dword [edx + 4], 0
je 0x10058e98
mov dword [ebx + 0x84], 1
jmp 0x10058ea2
mov dword [ebx + 0x80], 1
mov esi, 1
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x78], 5
mov dword [ebx + 0x7c], 0
cmp dword [edi], 0
je 0x10058edf
mov ecx, dword [ebp - 0x68]
lea eax, [edi + 0x218]
push eax
add ecx, 0x54
push 0x10094d78
mov edx, str.sql_get
call fcn.1004ef30
mov dword [edi + 0x318], esi
jmp 0x100592b5
cmp dword [esi + 0x18], 0
je 0x10058fe3
cmp dword [edi + 0xf4], 0
je 0x10058fe3
lea ecx, [ebp - 0x68]
push ecx
lea edx, [esi + 0x20]
push edx
lea eax, [edi + 0xe4]
call fcn.100392d0
test eax, eax
je 0x10058fe3
push 0xc
push str.POST
lea ecx, [ebx + 0x5c]
call fcn.10002780
push 0x15
lea esi, [ebx + 4]
push 0x1008537c
mov ecx, esi
call fcn.10002780
mov eax, dword [ebp - 0x68]
push 0
push eax
or eax, 0xffffffff
call fcn.1000ed10
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x48], 0
je 0x10058f80
push 2
mov eax, 0x10082f54
mov ecx, esi
call fcn.1000cd00
mov eax, dword [ebp - 0x68]
add eax, 0x38
push 0
push eax
or eax, 0xffffffff
call fcn.1000ed10
push 2
mov eax, 0x10082f48
mov ecx, esi
call fcn.1000cd00
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x1c], 0
mov esi, 1
je 0x10058f96
mov dword [ebx + 0x84], esi
jmp 0x10058fa0
mov dword [ebx + 0x80], 1
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x78], 5
mov dword [ebx + 0x7c], 0
cmp dword [edi], 0
je 0x10058fd8
mov ecx, dword [ebp - 0x68]
lea eax, [edi + 0x218]
push eax
add ecx, 0x54
push 0x10094d78
mov edx, str.sql_post
call fcn.1004ef30
mov dword [edi + 0x318], esi
jmp 0x100592b5
cmp dword [esi + 0x30], 0
je 0x10058db2
cmp dword [edi + 0x1d8], 0
je 0x10058db2
lea ecx, [ebp - 0x68]
push ecx
add esi, 0x38
push esi
lea eax, [edi + 0x1c8]
call fcn.100392d0
test eax, eax
je 0x10058db2
push 0x12
push str.Header
lea ecx, [ebx + 0x5c]
call fcn.10002780
push 0x15
lea esi, [ebx + 4]
push 0x1008537c
mov ecx, esi
call fcn.10002780
mov edx, dword [ebp - 0x68]
push 0
push edx
or eax, 0xffffffff
call fcn.1000ed10
mov esi, dword [ebp - 0x68]
cmp dword [esi + 0x48], 0
je 0x1005907c
lea eax, [ebx + 4]
push eax
mov eax, 0x100853cc
call fcn.1000ce20
add esi, 0x38
push 0
push esi
or eax, 0xffffffff
lea esi, [ebx + 4]
call fcn.1000ed10
lea eax, [ebx + 4]
push eax
mov eax, 0x10082f48
call fcn.1000ce20
mov esi, dword [ebp - 0x68]
xor ecx, ecx
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], 1
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
mov byte [ebp - 0x64], cl
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x74]
je 0x10059176
cmp dword [eax + 0x10], ecx
je 0x10059176
mov ecx, dword [edi + 0x1e8]
sub ecx, dword [edi + 0x1e4]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x10059176
mov dword [ebp - 0x6c], esi
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x70]
mov ecx, dword [edi + 0x1e4]
add ecx, dword [ebp - 0x6c]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x100590f9
mov eax, dword [eax]
push edx
push eax
add ecx, 0x20
push ecx
xor eax, eax
call fcn.1000cf70
cmp eax, 0xffffffff
jne 0x10059135
mov ecx, dword [edi + 0x1e8]
sub ecx, dword [edi + 0x1e4]
add dword [ebp - 0x6c], 0x3c
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
jb 0x100590df
jmp 0x10059170
mov ecx, dword [edi + 0x1e4]
mov dword [ebp - 0x6c], esi
shl esi, 4
sub esi, dword [ebp - 0x6c]
push 0xffffffffffffffff
add esi, esi
add esi, esi
lea eax, [esi + ecx + 4]
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002690
mov edx, dword [edi + 0x1e4]
push 0xffffffffffffffff
lea esi, [esi + edx + 0x20]
push 0
push esi
lea ecx, [ebp - 0x64]
call fcn.10002690
cmp dword [ebp - 0x1c], 0
jne 0x10059185
push 8
push 0x10082f7c
lea ecx, [ebp - 0x2c]
call fcn.10002780
lea esi, [ebx + 4]
push 9
mov eax, 0x100853d8
mov ecx, esi
call fcn.1000cd00
push 0
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
call fcn.1000ed10
lea esi, [ebx + 4]
push 2
mov eax, 0x100853e4
mov ecx, esi
call fcn.1000cd00
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x64]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [ecx], 0
call fcn.10002690
lea ecx, [ebp - 0x48]
call fcn.100147c0
push 0
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 3
call fcn.1000ed10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0x10
jb 0x10059208
mov eax, dword [ebp - 0x48]
push eax
call fcn.1005ccdb
add esp, 4
push 2
mov eax, 0x10082f48
lea ecx, [ebx + 4]
call fcn.1000cd00
mov ecx, dword [ebp - 0x70]
cmp dword [ecx + 0x34], 0
mov esi, 1
je 0x1005922d
mov dword [ebx + 0x84], esi
jmp 0x10059237
mov dword [ebx + 0x80], 1
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x88], esi
mov dword [ebx + 0x78], 5
mov dword [ebx + 0x7c], 0
cmp dword [edi], 0
je 0x1005926f
mov ecx, dword [ebp - 0x68]
lea edx, [edi + 0x218]
push edx
add ecx, 0x54
push 0x10094d78
mov edx, str.sql_header
call fcn.1004ef30
mov dword [edi + 0x318], esi
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x1005928b
mov eax, dword [ebp - 0x64]
push eax
call fcn.1005ccdb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], esi
jb 0x100592b5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1005ccdb
add esp, 4
push 0xb
push str.SQL
lea ecx, [ebx + 0x40]
call fcn.10002780
cmp dword [edi], 0
je 0x1005931c
push 1
push 0x10081334
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.10002780
add edi, 0x218
push edi
push 0x10094d78
lea ecx, [ebp - 0x48]
mov edx, str.invade
mov dword [ebp - 4], 4
call fcn.1004ef30
cmp dword [ebp - 0x34], 0x10
jb 0x1005931c
mov edx, dword [ebp - 0x48]
push edx
call fcn.1005ccdb
add esp, 4
mov dword [ebx], 2
jmp 0x10058db8