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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x4b22d4]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c5]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x24], edi
mov byte [esp + 0x1cc], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0xbd]
push ebx
push eax
mov byte [esp + 0xc4], bl
call fcn.00401f80
add esp, 0xc
push 0x4c
lea eax, [esp + 0x70]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], ebx
call fcn.00401f80
add esp, 0xc
call fcn.0044bacf
test eax, eax
je 0x45f03e
xor eax, eax
inc eax
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
call fcn.00419a8b
mov ecx, eax
sub ecx, dword [0x5a8fe4]
mov dword [esp + 0x1c], eax
mov eax, 0x999
cmp ecx, 0x1388
jae 0x45f0eb
cmp dword [esp + 0x20], eax
je 0x45f0eb
mov eax, dword [0x5a910c]
inc dword [0x5a90ac]
inc eax
mov dword [0x5a910c], eax
cmp eax, 0x16
jl 0x45f087
xor eax, eax
mov dword [0x5a910c], eax
mov ecx, dword [ebp + 0xc]
mov dword [eax*4 + 0x5a9560], ecx
cmp edi, ebx
je 0x45f0ca
push edi
mov ecx, 0x104
lea eax, [esp + 0xbc]
call fcn.00435b27
pop ecx
mov esi, eax
call fcn.004359d7
mov eax, esi
push eax
mov eax, dword [0x5a910c]
imul eax, eax, 7
push 7
add eax, 0x5a95c0
pop ecx
call fcn.00435b27
pop ecx
jmp 0x45f0d7
imul eax, eax, 7
add eax, 0x5a95c0
call fcn.00435ba1
call fcn.00419a8b
mov ecx, dword [0x5a910c]
mov dword [ecx*4 + 0x5a9668], eax
jmp 0x45f112
cmp dword [0x5a90ac], 0xc
jl 0x45f102
cmp dword [0x4b38dc], ebx
je 0x45f102
mov dword [0x4b38dc], ebx
cmp dword [esp + 0x20], eax
je 0x45f026
mov dword [0x5a90ac], ebx
mov eax, dword [esp + 0x1c]
mov dword [0x5a8fe4], eax
cmp dword [esp + 0x20], ebx
je 0x45f026
mov dword [esp + 0x10], ebx
mov esi, 0x4e20
cmp dword [0x5a8f84], ebx
je 0x45f17b
push str._nWaiting_for_local_lock_function...
call fcn.0045c68f
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x45f152
call fcn.00419a8b
mov dword [esp + 0x10], eax
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, esi
ja 0x45f16e
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5a8f84], ebx
jne 0x45f143
push str.Done.
call fcn.0045c68f
add esp, 4
mov edi, dword [esp + 0x20]
push edi
xor ebx, ebx
mov dword [0x5a8f84], 1
call fcn.0045a89b
pop ecx
test eax, eax
je 0x45f029
cmp edi, 0x20
jne 0x45f1a9
mov dword [esp + 0x1c], 0x7d00
jmp 0x45f1c9
cmp edi, 4
jne 0x45f1b8
mov dword [esp + 0x1c], 0x55f0
jmp 0x45f1c9
mov dword [esp + 0x1c], esi
cmp edi, 8
je 0x45f1c9
mov dword [esp + 0x1c], 0x3a98
xor ebx, ebx
push ebx
lea edi, [esp + 0x1c4]
call fcn.0045abea
pop ecx
mov esi, 0x1e61
push esi
mov ecx, edi
call fcn.00474dec
pop ecx
test eax, eax
jne 0x45f200
push esi
mov ecx, edi
call fcn.00474c86
mov dword [esp], 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x20]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
call fcn.00435ba1
push dword [esp + 0x18]
mov ecx, 0x104
call fcn.00435b27
pop ecx
mov esi, eax
call fcn.004359d7
mov eax, esi
push eax
push 0x40
pop ecx
lea eax, [esp + 0x78]
call fcn.00435b27
mov dword [esp], 0x2635
push str.Network.c
push str.LockTAMSServerID_sub
lea eax, [esp + 0x74]
push eax
push 0x45edfe
xor ecx, ecx
call fcn.00474b18
push 1
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x74], ebx
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f386
mov ebx, 0x12c
lea esi, [ebx - 0x32]
cmp dword [esp + 0x10], 0
jne 0x45f2a7
call fcn.00419a8b
mov dword [esp + 0x10], eax
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
js 0x45f2d8
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x45f2d8
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
push edx
jmp 0x45f2da
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0
jne 0x45f2ff
push str._n_nWaiting_to_lock_server:_______________rWaiting_to_lock_server:_
call fcn.0045c68f
add esp, 4
call fcn.00419a8b
mov dword [esp + 0x14], eax
jmp 0x45f335
mov eax, dword [esp + 0x1c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov edi, eax
call fcn.00419a8b
sub eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x45f335
cmp dword [esp + 0x18], 0xc
jae 0x45f331
push 0x490358
call fcn.0045c68f
add esp, 4
inc dword [esp + 0x18]
add dword [esp + 0x14], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x1c]
jae 0x45f35b
push 1
push dword [esp + 0x24]
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
jne 0x45f297
jmp 0x45f386
cmp dword [esp + 0x20], 4
mov dword [esp + 0x6c], 1
jne 0x45f386
call fcn.00419a8b
sub eax, dword [0x5a9214]
cmp eax, 0xea60
jb 0x45f386
call fcn.00419a8b
mov dword [0x5a9214], eax
cmp dword [esp + 0x10], 0
je 0x45f392
call fcn.00419a8b
xor edi, edi
inc edi
mov dword [esp + 0x70], edi
call fcn.00419a8b
mov esi, dword [esp + 0x28]
and dword [esp + 0x24], 0
mov ebx, eax
test esi, esi
je 0x45f40f
cmp dword [esp + 0x10], 0
jne 0x45f3bd
call fcn.00419a8b
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x45f3e5
cmp dword [esp + 0x24], 0x103
jne 0x45f407
call fcn.00419a8b
sub eax, ebx
cmp eax, 0x2710
ja 0x45f3f3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
jne 0x45f3c5
jmp 0x45f3f8
and dword [esp + 0x24], 0
cmp dword [esp + 0x24], 0x103
jne 0x45f407
and dword [esp + 0x24], 0
call fcn.00473b95
xor edi, edi
inc edi
cmp dword [esp + 0x10], 0
je 0x45f41b
call fcn.00419a8b
xor ecx, ecx
cmp dword [esp + 0x14], ecx
jbe 0x45f430
push str._r________________________________________r
call fcn.0045c68f
add esp, 4
cmp dword [esp + 0x24], ecx
jne 0x45f443
xor eax, eax
mov dword [0x5a8f84], ecx
jmp 0x45f029
cmp dword [esp + 0x20], 0xff
jne 0x45f6ac
cmp dword [esp + 0x6c], ecx
jne 0x45f6ac
push 0x38
push ecx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x38], ecx
call fcn.00401f80
mov ebx, dword [esp + 0x28]
add esp, 0xc
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x10], 0
jne 0x45f48d
call fcn.00419a8b
mov dword [esp + 0x10], eax
test esi, esi
jne 0x45f641
cmp dword [esp + 0x2c], esi
jne 0x45f4c9
push esi
push edi
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f4ac
mov esi, edi
jmp 0x45f4b0
mov dword [esp + 0x2c], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x30], 0
jne 0x45f500
push 0
push 2
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f4e3
mov esi, edi
jmp 0x45f4e7
mov dword [esp + 0x30], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x34], 0
jne 0x45f537
push 0
push 4
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f51a
mov esi, edi
jmp 0x45f51e
mov dword [esp + 0x34], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x38], 0
jne 0x45f56e
push 0
push 8
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f551
mov esi, edi
jmp 0x45f555
mov dword [esp + 0x38], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x3c], 0
jne 0x45f5a5
push 0
push 0x10
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f588
mov esi, edi
jmp 0x45f58c
mov dword [esp + 0x3c], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x40], 0
jne 0x45f5d8
push 0
push 0x20
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f5bf
mov esi, edi
jmp 0x45f5c3
mov dword [esp + 0x40], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x44], 0
jne 0x45f60b
push 0
push 0x40
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f5f2
mov esi, edi
jmp 0x45f5f6
mov dword [esp + 0x44], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
jne 0x45f641
cmp dword [esp + 0x48], 0
jne 0x45f6ac
push 0
push 0x100
call fcn.0045c44c
pop ecx
pop ecx
test eax, eax
je 0x45f62c
mov esi, edi
jmp 0x45f630
mov dword [esp + 0x48], edi
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jae 0x45f6ac
test esi, esi
je 0x45f6ac
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0
jne 0x45f66b
push str._nWaiting_to_lock_server:_______________rWaiting_to_lock_server:_
call fcn.0045c68f
add esp, 4
call fcn.00419a8b
mov dword [esp + 0x14], eax
jmp 0x45f69b
call fcn.00419a8b
sub eax, dword [esp + 0x14]
cmp eax, 0x3e8
jbe 0x45f69b
cmp dword [esp + 0x18], 0xc
jae 0x45f693
push 0x490358
call fcn.0045c68f
add esp, 4
inc dword [esp + 0x18]
add dword [esp + 0x14], 0x3e8
call fcn.00419a8b
sub eax, dword [esp + 0x10]
cmp eax, ebx
jb 0x45f47d
mov eax, edi
xor ecx, ecx
jmp 0x45f438