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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x49da28
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x74]
mov edi, ecx
push eax
lea edx, [esp + 0x18]
lea ecx, [edi + 0x34]
push edx
call fcn.0045f810
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x40d9f6
mov eax, dword [edi + 8]
cmp eax, dword [edi + 0x6c]
jl 0x40d69e
push str.MSG_DUNGEON_SERVER_OVERFLOW
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x40d6cc
push str.MSG_DUNGEON_NO_SERVER
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov eax, dword [esp + 0x78]
push eax
mov ecx, 0x524d6c
call fcn.0040b2e0
mov ebx, eax
test ebx, ebx
jne 0x40d708
push str.MSG_DUNGEON_WRONG_TYPE
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
lea ecx, [ebx + 0xe8]
call fcn.004436c0
test al, al
jne 0x40d73e
push str.MSG_DUNGEON_OUT_OF_SERVICE
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, 0x4d8ac8
call fcn.0042b870
test eax, eax
mov dword [esp + 0x14], eax
je 0x40d9cf
mov ecx, dword [edi + 0x60]
mov eax, dword [ecx]
or ebp, 0xffffffff
cmp eax, ecx
mov esi, 0x186a0
mov dword [esp + 0x10], eax
je 0x40d9cf
mov ecx, dword [eax + 0x10]
cmp ecx, esi
jge 0x40d77e
mov ebp, dword [eax + 0xc]
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0040b0a0
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x60]
jne 0x40d772
cmp ebp, 0xffffffff
je 0x40d9cf
lea ecx, [esp + 0x24]
call fcn.0040b4f0
push eax
mov ecx, edi
mov dword [esp + 0x70], 0
call fcn.0040d5f0
lea ecx, [esp + 0x24]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040b560
mov edx, dword [edi + 4]
mov esi, dword [edx + 4]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
add esi, 8
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebp
mov dword [esi], eax
mov dword [esi + 4], ebx
mov edx, dword [edi + 0x68]
lea ebp, [esi + 0x10]
mov dword [ebp], edx
inc dword [edi + 0x68]
push 0
mov dword [esi + 0x14], 0
call fcn.0047f0fc
lea ecx, [eax + 0xa]
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov edx, dword [ebx + 0xd8]
add esp, 4
add edx, eax
xor ebx, ebx
push ebp
lea ecx, [edi + 0xc]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ebx
call fcn.0040ce70
mov ecx, edi
mov dword [eax], esi
call fcn.0040ae50
lea eax, [esp + 0x74]
lea ecx, [esi + 0x18]
push eax
call fcn.0040c250
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2d4]
cmp eax, ebx
je 0x40d91a
cmp dword [eax + 0x120], ebx
mov dword [esp + 0x7c], ebx
je 0x40d957
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x40d862
mov ecx, dword [esp + 0x10]
test ecx, ecx
jl 0x40d876
mov edx, dword [esp + 0x7c]
cmp edx, dword [eax + 0x120]
jge 0x40d876
add eax, ecx
jmp 0x40d87b
mov eax, 0x52c980
mov ebp, dword [eax]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [edi + 0x34]
mov ecx, ebx
mov dword [esp + 0x80], ebp
call fcn.0045f810
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0x3c]
jne 0x40d8ec
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esi + 0x24]
mov dword [esp + 0x24], eax
call fcn.0040c290
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x28]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
mov byte [edx + 0xc], 0
call fcn.0040cec0
mov dword [eax], esi
cmp ebp, dword [esp + 0x74]
je 0x40d8ec
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esi + 0x18]
call fcn.0040c250
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x10]
mov eax, dword [edx + 0x2d4]
mov edx, dword [eax + 0x120]
inc ecx
add ebx, 0x30
cmp ecx, edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x10], ebx
jne 0x40d85e
jmp 0x40d957
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esi + 0x24]
mov dword [esp + 0x24], eax
call fcn.0040c290
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [edi + 0x34]
mov byte [eax + 0xc], 0
call fcn.0040cec0
mov dword [eax], esi
mov edx, dword [esi + 0xc]
push edx
mov ecx, 0x4d8ac8
call fcn.004013d0
cmp eax, 0xffffffff
je 0x40d9cf
mov ecx, 0x4d8fdc
call fcn.004368d0
push 0x8b
mov ecx, 0x4d8fdc
call fcn.00436910
mov eax, dword [esi + 0x10]
push eax
mov ecx, 0x4d8fdc
call fcn.00436940
mov ecx, dword [esi]
push ecx
mov ecx, 0x4d8fdc
call fcn.00436940
mov edx, dword [esi + 8]
push edx
mov ecx, 0x4d8fdc
call fcn.00436940
mov eax, dword [esi + 0xc]
push 0x4d8fdc
push eax
mov ecx, 0x4d8ac8
call fcn.004013d0
push eax
mov ecx, 0x4d8ea0
call fcn.00435170
jmp 0x40db41
push str.MSG_DUNGEON_UNKNOWN_ERROR
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov esi, dword [ecx + 0xc]
mov eax, dword [esi + 0x14]
test eax, eax
push 0
jne 0x40dad8
call fcn.0047f0fc
mov ecx, dword [esi + 0x34]
add esp, 4
cmp eax, ecx
jle 0x40da44
push esi
mov ecx, edi
call fcn.0040d220
push str.MSG_DUNGEON_CREATE_OVERTIME
call fcn.00455f10
add esp, 4
mov dword [edi + 0x74], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
cmp eax, ecx
je 0x40da63
lea ecx, [ecx]
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x74]
je 0x40da5f
mov eax, dword [eax]
cmp eax, ecx
jne 0x40da50
cmp eax, ecx
jne 0x40da8d
mov ebx, dword [esi + 0x1c]
mov ecx, dword [ebx + 4]
lea edi, [esi + 0x18]
lea eax, [esp + 0x74]
push eax
push ecx
push ebx
mov ecx, edi
call fcn.004791a0
push 1
mov ecx, edi
mov ebp, eax
call fcn.0040b8a0
mov dword [ebx + 4], ebp
mov edx, dword [ebp + 4]
mov dword [edx], ebp
mov edi, dword [0x4d8ef4]
mov ecx, dword [0x4d8ecc]
imul edi, edi, 0x1c
push 0
push 0
push str.MSG_DUNGEON_ADD_IN_LIST
add edi, ecx
call fcn.00455f10
add esp, 4
push eax
push 7
push str.MSG_DUNGEON
call fcn.00455f10
mov ecx, dword [edi + 4]
add esp, 4
push eax
mov eax, dword [esp + 0x88]
push eax
push ecx
mov ecx, 0x4d9404
call fcn.00401030
jmp 0x40db41
mov edi, dword [0x4d8ef4]
mov ecx, dword [0x4d8ecc]
imul edi, edi, 0x1c
push 0
push str.MSG_DUNGEON_SENDING
add edi, ecx
call fcn.00455f10
add esp, 4
push eax
push 7
push str.MSG_DUNGEON
call fcn.00455f10
mov ebx, dword [esp + 0x88]
mov edx, dword [edi + 4]
add esp, 4
push eax
push ebx
push edx
mov ecx, 0x4d9404
call fcn.00401030
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x94]
mov edx, dword [eax + 0x90]
mov eax, dword [esi + 0x10]
push 1
push ecx
push edx
push eax
push ebx
mov ecx, 0x4d8ac8
call fcn.0042f8f0
mov ecx, dword [esp + 0x64]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc