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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5a9e98]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004eb440
cmp eax, 1
mov edi, dword [ebp + 0xc]
je 0x4c6990
cmp eax, 2
je 0x4c6990
cmp eax, 8
jne 0x4c6a90
mov ecx, edi
call fcn.004eb440
cmp eax, 1
je 0x4c69aa
cmp eax, 2
je 0x4c69aa
cmp eax, 8
jne 0x4c6a90
mov ecx, esi
call fcn.004ecd20
cmp eax, 1
jne 0x4c6a57
push eax
mov ecx, esi
call fcn.00430b00
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c7394
mov ecx, edi
call fcn.004ecd20
cmp eax, 1
jne 0x4c69ff
push 0
mov ecx, edi
call fcn.00430b00
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c7394
push 1
mov ecx, esi
call fcn.00431390
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c7394
push 1
mov ecx, edi
call fcn.00431390
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c7394
call fcn.004fc960
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4c6adf
push 0x80004005
call fcn.00401c00
mov ecx, edi
call fcn.004ecd20
cmp eax, 1
jne 0x4c6a90
push eax
mov ecx, edi
call fcn.00430b00
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4c69ff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 0
mov ecx, esi
call fcn.00431390
mov edx, eax
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c7394
push 0
mov ecx, edi
call fcn.00431390
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4c6a39
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], 0
call fcn.004fc960
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4c6b11
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x78], 1
call fcn.004fc960
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4c6b40
push 0x80004005
call fcn.00401c00
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x24], 0
mov byte [esp + 0x78], 2
lea ecx, [esp + 0x14]
je 0x4c6b66
push 0x56da3c
jmp 0x4c6b6b
push 0x56da34
call fcn.00402500
mov edx, dword [esi]
mov ebx, dword [esp + 0x14]
mov edx, dword [edx + 0x94]
push 0
push 1
lea eax, [esp + 0x2c]
push eax
push ebx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.004305b0
mov dword [esp + 0x3c], eax
and eax, 0xffff0000
add esp, 8
cmp eax, 0x30000
jne 0x4c6c3f
mov edx, dword [esp + 0x24]
push edx
mov ecx, esi
call fcn.004307e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x78], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6bdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6bfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c6c26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edx, dword [edi]
mov edx, dword [edx + 0x94]
push 0
push 1
lea eax, [esp + 0x2c]
push eax
push ebx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.004305b0
mov ebx, eax
mov edx, ebx
and edx, 0xffff0000
add esp, 8
cmp edx, 0x30000
jne 0x4c6cb3
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
call fcn.004307e0
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edx, dword [esi]
mov edx, dword [edx + 0x94]
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x2c]
push ecx
push str.blowfish_cbc
mov ecx, esi
call edx
mov ebx, eax
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x4c6c81
lea ecx, [esp + 0x54]
push ecx
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00402c20
call fcn.00434710
add esp, 8
test eax, eax
jne 0x4c6d43
push 2
push 0x1517
mov ecx, esi
call fcn.004ef6f0
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, 0x30002
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push 0x567434
push eax
call fcn.0040c4c0
mov edx, dword [edi]
mov edx, dword [edx + 0x94]
add esp, 0x20
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push 1
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x24]
push ecx
push eax
call fcn.004305b0
mov ebx, eax
add esp, 8
cmp ebx, 0x30001
je 0x4c6d0e
mov edx, ebx
and edx, 0xffff0000
cmp edx, 0x10000
jne 0x4c6c81
cmp dword [ebp + 0x10], 0
je 0x4c6dca
mov ebx, edi
jmp 0x4c6dce
mov ebx, esi
mov esi, edi
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004ed3e0
mov eax, dword [eax]
push eax
mov ecx, esi
mov byte [esp + 0x7c], 3
call fcn.004eb380
push eax
lea ecx, [esp + 0x54]
call fcn.00412d60
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 5
call fcn.00401f50
mov edx, dword [ebp + 0x14]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00402860
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
call fcn.00412e20
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
mov byte [esp + 0x7c], 6
call fcn.004ed3e0
mov eax, dword [eax]
push eax
mov ecx, ebx
mov byte [esp + 0x7c], 7
call fcn.004eb380
push eax
lea ecx, [esp + 0x4c]
call fcn.00412d60
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 9
call fcn.00401f50
mov edx, dword [ebp + 0x18]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00402860
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.00412e20
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0xa
call fcn.00402c20
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 0xb
call fcn.00402c20
mov ecx, 0x5adbf0
mov byte [esp + 0x78], 0xc
call fcn.0048c620
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
push ecx
mov eax, dword [ebp + 0x14]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.00402860
call fcn.004116c0
add esp, 4
cmp eax, 4
jne 0x4c6ed7
lea edi, [eax - 3]
mov ecx, 0x5adbf0
call fcn.0048c620
mov edx, dword [ebp + 0x18]
neg eax
push ecx
sbb eax, eax
add eax, 1
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov dword [esp + 0x38], eax
call fcn.00402860
call fcn.004116c0
add esp, 4
cmp eax, 4
jne 0x4c6f11
mov dword [esp + 0x30], 1
test edi, edi
je 0x4c6f91
lea ecx, [esp + 0x34]
call fcn.00402020
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
mov byte [esp + 0x80], 0xd
call fcn.004eb380
push eax
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00402c20
call fcn.00412260
add esp, 0x10
push 0
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00402c20
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
lea ecx, [esp + 0x34]
jne 0x4c719c
mov byte [esp + 0x78], 0xc
call fcn.00401f50
cmp dword [esp + 0x30], 0
je 0x4c7014
lea ecx, [esp + 0x34]
call fcn.00402020
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 0xe
call fcn.004eb380
push eax
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00402c20
call fcn.00412260
add esp, 0x10
push 0
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00402c20
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
mov edi, eax
mov ecx, edi
and ecx, 0xffff0000
cmp ecx, 0x10000
lea ecx, [esp + 0x34]
jne 0x4c719c
mov byte [esp + 0x78], 0xc
call fcn.00401f50
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 0x290]
push edx
mov ecx, esi
call fcn.00430dc0
mov eax, dword [edi + 0x290]
push eax
mov ecx, ebx
call fcn.00430dc0
mov ecx, dword [ebp + 0x1c]
or ecx, dword [ebp + 0x20]
je 0x4c72db
lea ecx, [esp + 0x30]
call fcn.00402020
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x38]
push 0x567490
push ecx
mov byte [esp + 0x88], 0xf
call fcn.0040c4c0
add esp, 0x10
cmp dword [ebp + 0x28], 0
je 0x4c720d
mov edx, dword [esi]
mov edx, dword [edx + 0x94]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x34]
push 1
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
and eax, 0xffff0000
cmp eax, 0x10000
je 0x4c7115
lea ecx, [esp + 0x30]
call fcn.00401f50
lea ecx, [esp + 0x1c]
call fcn.00401f50
lea ecx, [esp + 0x20]
call fcn.00401f50
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x44]
call fcn.00401f50
lea ecx, [esp + 0x2c]
call fcn.00401f50
lea ecx, [esp + 0x4c]
call fcn.00401f50
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push 0x56fd58
push ecx
call fcn.004058d0
mov dword [esp + 0x40], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push 0x56fd50
push eax
mov byte [esp + 0x90], 0x10
call fcn.004058d0
add esp, 0x18
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ecx
push eax
push ebx
push esi
mov ecx, edi
mov byte [esp + 0x88], 0x11
call fcn.004b3b30
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00401f50
lea ecx, [esp + 0x40]
mov byte [esp + 0x78], 0xf
call fcn.00401f50
mov edx, edi
and edx, 0xffff0000
cmp edx, 0x10000
je 0x4c7198
cmp edi, 0x30002
je 0x4c7209
lea ecx, [esp + 0x30]
call fcn.00401f50
lea ecx, [esp + 0x1c]
call fcn.00401f50
lea ecx, [esp + 0x20]
call fcn.00401f50
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x44]
call fcn.00401f50
lea ecx, [esp + 0x2c]
call fcn.00401f50
lea ecx, [esp + 0x4c]
call fcn.00401f50
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov edi, dword [esp + 0x38]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push 1
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 0x94]
push ecx
mov ecx, esi
call edx
mov dword [esp + 0x34], eax
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x4c70a2
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
push 1
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 0x94]
push ecx
mov ecx, ebx
call edx
mov dword [esp + 0x34], eax
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x4c70a2
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push 0x56fd48
push ecx
call fcn.004058d0
mov dword [esp + 0x4c], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push 0x56fd50
push eax
mov byte [esp + 0x90], 0x12
call fcn.004058d0
add esp, 0x18
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ecx
push eax
push ebx
push esi
mov ecx, edi
mov byte [esp + 0x88], 0x13
call fcn.004b3b30
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00401f50
lea ecx, [esp + 0x38]
call fcn.00401f50
lea ecx, [esp + 0x30]
jmp 0x4c733c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push 0x56fd48
push eax
call fcn.004058d0
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x4c]
push 0x56fd50
push edx
mov byte [esp + 0x90], 0x14
call fcn.004058d0
add esp, 0x18
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
mov eax, dword [eax]
push ecx
push eax
push ebx
push esi
mov ecx, edi
mov byte [esp + 0x88], 0x15
call fcn.004b3b30
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00401f50
lea ecx, [esp + 0x34]
call fcn.00401f50
lea ecx, [esp + 0x1c]
call fcn.00401f50
lea ecx, [esp + 0x20]
call fcn.00401f50
lea ecx, [esp + 0x28]
call fcn.00401f50
lea ecx, [esp + 0x44]
call fcn.00401f50
lea ecx, [esp + 0x2c]
call fcn.00401f50
lea ecx, [esp + 0x4c]
call fcn.00401f50
lea ecx, [esp + 0x10]
call fcn.00401f50
lea ecx, [esp + 0x14]
call fcn.00401f50
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24