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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c4
mov eax, dword [0x4e22e4]
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 + 0x20], 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.0045518e
test eax, eax
je 0x46b845
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.00494c40
test eax, eax
je 0x46b853
push 0x1b
pop esi
jmp 0x46b864
call fcn.004957af
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xa
add esi, 0xc
call fcn.0041a958
mov ecx, eax
sub ecx, dword [0x5dce7c]
mov dword [esp + 0x20], eax
mov eax, 0x999
cmp ecx, 0x1388
jae 0x46b911
cmp dword [esp + 0x1c], eax
je 0x46b911
mov eax, dword [0x5dd08c]
inc dword [0x5dcf84]
inc eax
mov dword [0x5dd08c], eax
cmp eax, 0x16
jl 0x46b8ad
xor eax, eax
mov dword [0x5dd08c], eax
mov ecx, dword [ebp + 0xc]
mov dword [eax*4 + 0x5dd2d0], ecx
cmp edi, ebx
je 0x46b8f0
push edi
mov ecx, 0x104
lea eax, [esp + 0xbc]
call fcn.00438c78
pop ecx
mov esi, eax
call fcn.00438af2
mov eax, esi
push eax
mov eax, dword [0x5dd08c]
imul eax, eax, 7
push 7
add eax, 0x5dd330
pop ecx
call fcn.00438c78
pop ecx
jmp 0x46b8fd
imul eax, eax, 7
add eax, 0x5dd330
call fcn.00438cf2
call fcn.0041a958
mov ecx, dword [0x5dd08c]
mov dword [ecx*4 + 0x5dd3d8], eax
jmp 0x46b937
cmp dword [0x5dcf84], esi
jl 0x46b927
cmp dword [0x4e3918], ebx
je 0x46b927
mov dword [0x4e3918], ebx
cmp dword [esp + 0x1c], eax
je 0x46b82d
mov dword [0x5dcf84], ebx
mov eax, dword [esp + 0x20]
mov dword [0x5dce7c], eax
call fcn.004955d6
mov esi, 0x4e20
test eax, eax
je 0x46b955
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x1c], ebx
je 0x46b82d
mov dword [esp + 0x10], ebx
cmp dword [0x5dce1c], ebx
je 0x46b9ae
push str._nWaiting_for_local_lock_function...
call fcn.00468856
pop ecx
jmp 0x46b99b
cmp dword [esp + 0x10], ebx
jne 0x46b987
call fcn.0041a958
mov dword [esp + 0x10], eax
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, esi
ja 0x46b9a3
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x5dce1c], ebx
jne 0x46b978
push str.Done.
call fcn.00468856
pop ecx
push dword [esp + 0x1c]
xor ebx, ebx
mov dword [0x5dce1c], 1
call fcn.0046636a
pop ecx
test eax, eax
je 0x46b830
mov eax, dword [esp + 0x1c]
cmp eax, 0x20
jne 0x46b9dc
mov esi, 0x7d00
jmp 0x46ba0b
cmp eax, 4
jne 0x46b9e8
mov esi, 0x55f0
jmp 0x46ba0b
cmp eax, 8
je 0x46ba0b
cmp eax, 0x10
jne 0x46ba06
call fcn.004957af
neg eax
sbb esi, esi
mov eax, 0x3a98
and esi, eax
add esi, eax
jmp 0x46ba0b
mov esi, 0x3a98
mov dword [esp + 0x14], esi
call fcn.004957af
test eax, eax
je 0x46ba1f
lea eax, [esi + esi]
mov dword [esp + 0x14], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x1c4]
call fcn.004666da
pop ecx
mov esi, 0x1e61
push esi
mov ecx, edi
call fcn.0048e61d
pop ecx
test eax, eax
jne 0x46ba56
push esi
mov ecx, edi
call fcn.0048e4b7
mov dword [esp], 0x2bc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x1c]
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.00438cf2
push dword [esp + 0x18]
mov ecx, 0x104
call fcn.00438c78
pop ecx
mov esi, eax
call fcn.00438af2
mov eax, esi
push eax
push 0x40
pop ecx
lea eax, [esp + 0x78]
call fcn.00438c78
mov dword [esp], 0x2650
push str.Network.c
push str.LockTAMSServerID_sub
lea eax, [esp + 0x74]
push eax
push 0x46b605
xor ecx, ecx
call fcn.0048e30d
push 1
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x74], ebx
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bbd8
mov ebx, 0x12c
lea esi, [ebx - 0x32]
cmp dword [esp + 0x10], 0
jne 0x46bafd
call fcn.0041a958
mov dword [esp + 0x10], eax
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
js 0x46bb2e
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
cmp edx, 0x7fffffff
jge 0x46bb2e
call fcn.0040237f
cdq
mov ecx, ebx
idiv ecx
add edx, esi
push edx
jmp 0x46bb30
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 0
jne 0x46bb53
push str._n_nWaiting_to_lock_server:_______________rWaiting_to_lock_server:_
call fcn.00468856
pop ecx
call fcn.0041a958
mov dword [esp + 0x18], eax
jmp 0x46bb87
mov eax, dword [esp + 0x14]
push 0xc
xor edx, edx
pop ecx
div ecx
mov edi, eax
call fcn.0041a958
sub eax, dword [esp + 0x18]
cmp eax, edi
jbe 0x46bb87
cmp dword [esp + 0x20], 0xc
jae 0x46bb83
push 0x4ae7fc
call fcn.00468856
inc dword [esp + 0x24]
pop ecx
add dword [esp + 0x18], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bbad
push 1
push dword [esp + 0x20]
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
jne 0x46baed
jmp 0x46bbd8
cmp dword [esp + 0x1c], 4
mov dword [esp + 0x6c], 1
jne 0x46bbd8
call fcn.0041a958
sub eax, dword [0x5dd32c]
cmp eax, 0xea60
jb 0x46bbd8
call fcn.0041a958
mov dword [0x5dd32c], eax
cmp dword [esp + 0x10], 0
je 0x46bc1b
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, 0x8ae
jbe 0x46bc1b
call fcn.004957af
test eax, eax
je 0x46bc1b
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, 0x27ee
jbe 0x46bc1b
cmp dword [esp + 0x1c], 0x20
je 0x46bc16
cmp dword [esp + 0x1c], 4
jne 0x46bc1b
call fcn.0041a958
xor edi, edi
inc edi
mov dword [esp + 0x70], edi
call fcn.0041a958
mov esi, dword [esp + 0x28]
and dword [esp + 0x24], 0
mov ebx, eax
test esi, esi
je 0x46bc98
cmp dword [esp + 0x10], 0
jne 0x46bc46
call fcn.0041a958
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x46bc6e
cmp dword [esp + 0x24], 0x103
jne 0x46bc90
call fcn.0041a958
sub eax, ebx
cmp eax, 0x2710
ja 0x46bc7c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
jne 0x46bc4e
jmp 0x46bc81
and dword [esp + 0x24], 0
cmp dword [esp + 0x24], 0x103
jne 0x46bc90
and dword [esp + 0x24], 0
call fcn.0048d2af
xor edi, edi
inc edi
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x46bcb3
call fcn.0041a958
sub eax, ebx
cmp eax, 0x8ae
jbe 0x46bcb3
call fcn.004957af
cmp dword [esp + 0x18], esi
jbe 0x46bcc4
push str._r________________________________________r
call fcn.00468856
pop ecx
cmp dword [esp + 0x24], esi
jne 0x46bcd8
xor eax, eax
and dword [0x5dce1c], 0
jmp 0x46b830
cmp dword [esp + 0x1c], 0xff
jne 0x46bf3d
cmp dword [esp + 0x6c], esi
jne 0x46bf3d
xor ebx, ebx
push 0x38
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.00401f80
add esp, 0xc
xor esi, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x10], ebx
jne 0x46bd1f
call fcn.0041a958
mov dword [esp + 0x10], eax
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x2c], ebx
jne 0x46bd5d
push ebx
push edi
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bd3e
mov esi, edi
jmp 0x46bd42
mov dword [esp + 0x2c], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x30], ebx
jne 0x46bd94
push ebx
push 2
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bd75
mov esi, edi
jmp 0x46bd79
mov dword [esp + 0x30], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x34], ebx
jne 0x46bdcb
push ebx
push 4
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bdac
mov esi, edi
jmp 0x46bdb0
mov dword [esp + 0x34], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x38], ebx
jne 0x46be02
push ebx
push 8
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bde3
mov esi, edi
jmp 0x46bde7
mov dword [esp + 0x38], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x3c], ebx
jne 0x46be39
push ebx
push 0x10
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46be1a
mov esi, edi
jmp 0x46be1e
mov dword [esp + 0x3c], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x40], ebx
jne 0x46be6c
push ebx
push 0x20
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46be51
mov esi, edi
jmp 0x46be55
mov dword [esp + 0x40], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x44], ebx
jne 0x46be9f
push ebx
push 0x40
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46be84
mov esi, edi
jmp 0x46be88
mov dword [esp + 0x44], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
jne 0x46bed5
cmp dword [esp + 0x48], ebx
jne 0x46bf3d
push ebx
push 0x100
call fcn.004680a6
pop ecx
pop ecx
test eax, eax
je 0x46bebe
mov esi, edi
jmp 0x46bec2
mov dword [esp + 0x48], edi
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jae 0x46bf3d
cmp esi, ebx
je 0x46bf3d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], ebx
jne 0x46befc
push str._nWaiting_to_lock_server:_______________rWaiting_to_lock_server:_
call fcn.00468856
pop ecx
call fcn.0041a958
mov dword [esp + 0x18], eax
jmp 0x46bf2a
call fcn.0041a958
sub eax, dword [esp + 0x18]
cmp eax, 0x3e8
jbe 0x46bf2a
cmp dword [esp + 0x20], 0xc
jae 0x46bf22
push 0x4ae7fc
call fcn.00468856
inc dword [esp + 0x24]
pop ecx
add dword [esp + 0x18], 0x3e8
call fcn.0041a958
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jb 0x46bd10
mov eax, edi
jmp 0x46bccc