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

Disassembly:
push 0xffffffffffffffff
push 0x422c03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74c
mov eax, dword [0x431884]
mov ecx, dword [esp + 0x760]
mov edx, dword [esp + 0x75c]
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [esp + 0x758], eax
lea eax, [esp + 0x28]
push eax
mov esi, 2
push ecx
mov ebx, 1
push edx
lea ecx, [esp + 0x130]
mov dword [esp + 0x34], 0x66
mov dword [esp + 0x38], str.file
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x69
mov dword [esp + 0x44], 0x4249c4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0x76
mov dword [esp + 0x50], str.version
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0x67
mov dword [esp + 0x5c], str.guid
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0x6e
mov dword [esp + 0x68], str.name
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0x70
mov dword [esp + 0x74], str.path
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], 0x63
mov dword [esp + 0x80], str.config
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
call fcn.00402dc0
cmp dword [esp + 0x134], edi
mov dword [esp + 0x760], edi
jne 0x406d38
mov ecx, dword [esp + 0x140]
cmp ecx, edi
je 0x406692
mov eax, dword [esp + 0x144]
sub eax, ecx
sar eax, 5
cmp eax, edi
jne 0x4069da
push ebx
push esi
lea ecx, [esp + 0x8c]
call fcn.00406240
push 0xa
lea ecx, [esp + 0x88]
mov byte [esp + 0x764], bl
call fcn.00406120
lea ecx, [esp + 0x84]
call fcn.00405be0
lea ecx, [esp + 0x84]
push 0x424990
push ecx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea edx, [esp + 0x84]
push str.abc.exe___filefilename___idid___versionversion___guidguid___namename___pathpath___configconfig
push edx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea eax, [esp + 0x84]
push 0x42491c
push eax
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea ecx, [esp + 0x84]
push str.abc.exe_t
push ecx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea edx, [esp + 0x84]
push str.__file__t
push edx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea eax, [esp + 0x84]
push str.__id_t_t
push eax
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea ecx, [esp + 0x84]
push str.__version_t
push ecx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea edx, [esp + 0x84]
push str.__guid_t_t
push edx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea eax, [esp + 0x84]
push str.__name_t_t
push eax
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea ecx, [esp + 0x84]
push str.__path_t_t
push ecx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea edx, [esp + 0x84]
push str.__config_t
push edx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
push 0xa
lea ecx, [esp + 0x88]
call fcn.00406120
lea ecx, [esp + 0x84]
call fcn.00405be0
lea eax, [esp + 0x84]
push 0x4246a8
push eax
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
lea ecx, [esp + 0x84]
push 0x424690
push ecx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
push str.abc.exe___fileE:SVNChatHall___id10000___version23___guid18ED5AE4_D89B_431c_8D61_16D631747F1F___nameDnssession.dll___pathE:SVNChatHall___configconfig.ini
lea edx, [esp + 0x88]
push edx
call fcn.00405f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00405be0
push edi
call fcn.00403320
add esp, 4
test al, al
je 0x406984
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x88]
call fcn.00406510
mov ecx, dword [eax + 0x18]
mov esi, 0x10
cmp ecx, esi
mov byte [esp + 0x760], 2
jb 0x406937
mov eax, dword [eax + 4]
jmp 0x40693a
add eax, 4
push 0xa
push eax
push 0x86
push str.._test_commandline.cpp
push edi
call fcn.00403380
add esp, 0xc
mov ecx, eax
call fcn.004032e0
mov ecx, eax
call fcn.004032b0
push eax
call fcn.00403530
mov eax, dword [esp + 0x120]
add esp, 4
cmp eax, esi
jb 0x406989
mov ecx, dword [esp + 0x108]
push ecx
call fcn.0041b96b
add esp, 4
jmp 0x406989
mov esi, 0x10
lea ecx, [esp + 0xd0]
mov byte [esp + 0x760], 0
call fcn.00405cd0
lea ecx, [esp + 0xd0]
mov dword [esp + 0xd0], 0x424524
call fcn.0041678a
lea ecx, [esp + 0x13c]
call fcn.00401f20
cmp dword [esp + 0x138], esi
jb 0x406d5e
mov edx, dword [esp + 0x124]
push edx
jmp 0x406d56
push ebp
call fcn.0041ba63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov bl, 3
lea ecx, [esp + 0x1d0]
mov byte [esp + 0x764], bl
call fcn.00403290
mov esi, dword [esp + 0x144]
xor ecx, ecx
mov dword [esp + 0x14], ecx
xor ebp, ebp
cmp esi, edi
jne 0x406a1a
xor eax, eax
jmp 0x406a26
mov eax, dword [esp + 0x148]
sub eax, esi
sar eax, 5
cmp ecx, eax
jge 0x406c24
cmp ebp, edi
jl 0x406c24
cmp esi, edi
jne 0x406a3e
xor eax, eax
jmp 0x406a4a
mov eax, dword [esp + 0x148]
sub eax, esi
sar eax, 5
cmp ecx, eax
jge 0x406c24
mov edi, dword [esi + ebp]
test edi, edi
je 0x406c24
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00404bc0
add esp, 8
test esi, esi
jne 0x406a73
xor eax, eax
jmp 0x406a7f
mov eax, dword [esp + 0x148]
sub eax, esi
sar eax, 5
cmp dword [esp + 0x14], eax
lea eax, [esi + ebp + 4]
jl 0x406a90
lea eax, [esp + 0x124]
cmp dword [eax + 0x18], 0x10
jb 0x406a9b
mov eax, dword [eax + 4]
jmp 0x406a9e
add eax, 4
lea ecx, [edi - 0x63]
cmp ecx, 0x13
ja case.0x406ab1.100
movzx ecx, byte [ecx + 0x406da4]
jmp dword [ecx*4 + 0x406d84]
push eax
lea ecx, [esp + 0x14]
call fcn.00405db0
jmp 0x406c0a
push eax
call fcn.00409553
add esp, 4
mov dword [esp + 0x250], eax
jmp 0x406c0a
push eax
call fcn.00409553
add esp, 4
mov dword [esp + 0x254], eax
jmp 0x406c0a
push eax
lea ecx, [esp + 0x20]
call fcn.00406310
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
cmp eax, 0x40
mov byte [esp + 0x764], 4
jb 0x406b14
mov eax, 0x40
push eax
lea ecx, [esp + 0x20]
call fcn.00404e00
push eax
lea eax, [esp + 0x1d8]
push eax
call fcn.0040948e
lea ecx, [esp + 0x28]
jmp 0x406bfb
push eax
lea ecx, [esp + 0x28]
call fcn.00406310
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
cmp eax, 0x40
mov byte [esp + 0x764], 5
jb 0x406b58
mov eax, 0x40
push eax
lea ecx, [esp + 0x28]
call fcn.00404e00
push eax
lea edx, [esp + 0x660]
push edx
call fcn.0040948e
lea ecx, [esp + 0x30]
jmp 0x406bfb
push eax
lea ecx, [esp + 0x24]
call fcn.00406310
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0xc]
cmp eax, 0x200
mov byte [esp + 0x764], 6
jb 0x406b9e
mov eax, 0x200
push eax
lea ecx, [esp + 0x24]
call fcn.00404e00
push eax
lea ecx, [esp + 0x260]
push ecx
call fcn.0040948e
lea ecx, [esp + 0x2c]
jmp 0x406bfb
push eax
lea ecx, [esp + 0x1c]
call fcn.00406310
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
cmp eax, 0x40
mov byte [esp + 0x764], 7
jb 0x406bdf
mov eax, 0x40
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e00
push eax
lea eax, [esp + 0x6e0]
push eax
call fcn.0040948e
lea ecx, [esp + 0x24]
add esp, 0xc
mov byte [esp + 0x764], bl
call fcn.00403840
mov esi, dword [esp + 0x144]
mov ecx, dword [esp + 0x14]
inc ecx
add ebp, 0x20
mov dword [esp + 0x14], ecx
xor edi, edi
jmp 0x406a12
lea ecx, [esp + 0x150]
call fcn.00404420
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x154]
mov byte [esp + 0x768], 8
call fcn.00404970
test eax, eax
pop ebp
jne 0x406cdf
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x150]
call fcn.00403e10
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x150]
call fcn.00404970
test eax, eax
jne 0x406cdf
lea ecx, [esp + 0x14c]
mov byte [esp + 0x760], bl
call fcn.00403c70
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x760], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x13c]
call fcn.00401f20
cmp dword [esp + 0x138], 0x10
jb 0x406cd7
mov eax, dword [esp + 0x124]
push eax
call fcn.0041b96b
add esp, 4
or eax, 0xffffffff
jmp 0x406d60
lea ecx, [esp + 0x1cc]
push ecx
lea ecx, [esp + 0x150]
call fcn.00404550
lea ecx, [esp + 0x14c]
call fcn.00404360
lea ecx, [esp + 0x14c]
mov byte [esp + 0x760], bl
call fcn.00403c70
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x760], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406d38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x13c]
call fcn.00401f20
cmp dword [esp + 0x138], 0x10
jb 0x406d5e
mov eax, dword [esp + 0x124]
push eax
call fcn.0041b96b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x758]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x74c]
pop ebx
call fcn.00408d70
add esp, 0x758
ret